Extending prometheus metrics plugin


(Jake Smith) #1

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:-

https://www.robustperception.io/writing-json-exporters-in-python

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?

Jake


(Jan Doberstein) #2

did you use the metric exporter?


(Jake Smith) #3

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.

Cheers

Jake


(system) #4

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