Enable Prometheus admin API

This commit is contained in:
Vinicius Fortuna 2020-10-16 15:27:42 -04:00
parent a56a4b1fa2
commit fdac297a46

View file

@ -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,