Skip to content

Commit

Permalink
[IMPROVE] Allow configure Prometheus port per process via Env Var (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Feb 11, 2019
1 parent 011826f commit 27a2abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-metrics/server/lib/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const server = http.createServer(app);

let timer;
const updatePrometheusConfig = async() => {
const port = settings.get('Prometheus_Port');
const port = process.env.PROMETHEUS_PORT || settings.get('Prometheus_Port');
const enabled = settings.get('Prometheus_Enabled');
if (port == null || enabled == null) {
return;
Expand Down

0 comments on commit 27a2abf

Please sign in to comment.