Closed gianrubio closed 7 years ago
@gianrubio This PR basically just duplicates the functionality which the metrics_prometheus_enabled
setting already has.
Simply set metrics_prometheus_enabled = false
in the configuration file to disable pushing metrics to a Prometheus Pushgateway. The HTTP resource at /api/plugins/org.graylog.plugins.metrics.prometheus/metrics
will be registered nonetheless.
The current prometheus plugin always initialise pushing metrics to a prometheus server. I prefer to scrape/pull my prometheus endpoints rather than pushing. Besides that, if the pushgateway is not configured, this plugin make the logs polluted.
To avoid this behaviour, I made this PR to pass a flag to disable the pushgateway.
Flag
Polluted logs