Extending prometheus metrics plugin

Hi All,

We have a prometheus / grafana server setup to capture metrics from Graylog.

One of the metrics we wanted to capture was disk space which is exposed at http://:9000/api/system/stats/fs

The response is in json which is not supported by prometheus. One option is to use a build a python extractor using a combination of below:-


Whilst this is possibly, I wondered if it would be possible to extend the plugin easily to add the disk space url to the plugin and provide the metrics via that method rather than the python one?

Any thoughts?


did you use the metric exporter?

Hi Jan,

Yes we are using the metrics exporter, but the output it gives is not really useable.

The best information for monitoring disk was found using the api call.

I will post some further information, later today.



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.