diff --git a/gatewayservice/monitoring/prometheus/prometheus.yml b/gatewayservice/monitoring/prometheus/prometheus.yml index 0e01051..a1bb7fb 100644 --- a/gatewayservice/monitoring/prometheus/prometheus.yml +++ b/gatewayservice/monitoring/prometheus/prometheus.yml @@ -3,4 +3,4 @@ global: scrape_configs: - job_name: "example-nodejs-app" static_configs: - - targets: ["gatewayservice:8000","questionservice:8003","userservice:8001","authservice:8002"] \ No newline at end of file + - targets: ["gatewayservice-wiq5a:8000","questionservice-wiq5a:8003","userservice-wiq5a:8001","authservice-wiq5a:8002"] \ No newline at end of file diff --git a/questionservice/server.js b/questionservice/server.js index c1e9c82..90fcfc3 100644 --- a/questionservice/server.js +++ b/questionservice/server.js @@ -4,6 +4,7 @@ let express = require('express'); const axios = require('axios'); const cors = require('cors'); const fs = require('fs'); +const promBundle = require('express-prom-bundle'); const crypto = require('crypto');