Skip to content

Commit

Permalink
correccion prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
fer4github committed Apr 25, 2024
1 parent ad20fbe commit 7c850d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions questionservice/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ const promBundle = require('express-prom-bundle');

const crypto = require('crypto');

//Prometheus configuration
const metricsMiddleware = promBundle({includeMethod: true});
app.use(metricsMiddleware);

let corsOptions = {
origin: 'http://localhost:8000'
};
Expand All @@ -21,6 +17,10 @@ let app = express();
app.disable("x-powered-by") //disable default information of express
app.use(cors(corsOptions));

//Prometheus configuration
const metricsMiddleware = promBundle({includeMethod: true});
app.use(metricsMiddleware);

// Cargamos las consultas SPARQL desde el fichero de configuración
const questions = JSON.parse(fs.readFileSync('questions.json', 'utf8'));

Expand Down

0 comments on commit 7c850d1

Please sign in to comment.