[NEW] Add prometheus port config (#11115)

* Semantic markup

* Fix spelling of "collaborative"

* Add `Prometheus_Port` configuration item

* Add `Prometheus_Port` configuration item

* Remove unrelated change

* Restore default value for `Prometheus_Port` to `9100`
pull/10127/head^2
thaiphv 7 years ago committed by Gabriel Engel
parent 5bd11ec0a3
commit 873ae7df23
  1. 2
      packages/rocketchat-lib/server/lib/metrics.js
  2. 4
      packages/rocketchat-lib/server/startup/settings.js

@ -147,7 +147,7 @@ let timer;
RocketChat.settings.get('Prometheus_Enabled', (key, value) => {
if (value === true) {
server.listen({
port: 9100,
port: RocketChat.settings.get('Prometheus_Port'),
host: process.env.BIND_IP || '0.0.0.0'
});
timer = Meteor.setInterval(setPrometheusData, 5000);

@ -1714,6 +1714,10 @@ RocketChat.settings.addGroup('Logs', function() {
type: 'boolean',
i18nLabel: 'Enabled'
});
this.add('Prometheus_Port', 9100, {
type: 'string',
i18nLabel: 'Port'
});
});
});

Loading…
Cancel
Save