Skip to content

Commit

Permalink
Merge pull request #750 from Jigsaw-Code/fortuna-prom
Browse files Browse the repository at this point in the history
Enable Prometheus admin API
  • Loading branch information
fortuna authored Oct 19, 2020
2 parents a56a4b1 + fdac297 commit 45fae7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shadowbox/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ async function main() {
const prometheusEndpoint = `http://${prometheusLocation}`;
const prometheusBinary = getBinaryFilename('prometheus');
const prometheusArgs = [
'--config.file', prometheusConfigFilename, '--storage.tsdb.retention.time', '31d',
'--storage.tsdb.path', prometheusTsdbFilename, '--web.listen-address', prometheusLocation,
'--log.level', verbose ? 'debug' : 'info'
'--config.file', prometheusConfigFilename, '--web.enable-admin-api',
'--storage.tsdb.retention.time', '31d', '--storage.tsdb.path', prometheusTsdbFilename,
'--web.listen-address', prometheusLocation, '--log.level', verbose ? 'debug' : 'info'
];
await startPrometheus(
prometheusBinary, prometheusConfigFilename, prometheusConfigJson, prometheusArgs,
Expand Down

0 comments on commit 45fae7f

Please sign in to comment.