From fdac297a463f178e2cf20cc2a770e16a85156380 Mon Sep 17 00:00:00 2001 From: Vinicius Fortuna Date: Fri, 16 Oct 2020 15:27:42 -0400 Subject: [PATCH] Enable Prometheus admin API --- src/shadowbox/server/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shadowbox/server/main.ts b/src/shadowbox/server/main.ts index 9ef05572d..6dfcf9f47 100644 --- a/src/shadowbox/server/main.ts +++ b/src/shadowbox/server/main.ts @@ -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,