Netdata/Prometheus
From charlesreid1
Notes
This page is about connecting Netdata with Prometheus. Netdata collects statistics about the computer, and Prometheus is a time series database.
Information on setting up/installing netdata: Netdata
Prometheus notes: Prometheus
Link to guide: https://github.com/firehol/netdata/wiki/Netdata,-Prometheus,-and-Grafana-Stack
Procedure
Install Prometheus
Start by installing Prometheus, following instructions on Prometheus page. Prometheus offers a Linux binary, or you can build from source.
Once you have Prometheus installed, you can run it, and it will start listening on port 9090.
Configure Prometheus
You'll have to configure Prometheus to tell it about the Netdata REST endpoint that provides data in a Prometheus-friendly format.
Here is what the REST endpoint for Prometheus looks like:
http://192.168.25.236:19999/api/v1/allmetrics?format=prometheus&help=yes
Run Netdata
All you need to do is run Netdata - no backend configuration required.
When you run Netdata, it will automatically provide the REST endpoints without configuration. The model Prometheus uses is for the Prometheus server to query the REST endpoint, rather than waiting for data to be sent to it, so it all works out.
End Result
The end result is, you should see several netdata time series available in Prometheus. You can start typing the name of a time series and a drop-down will show you different time series in the database. You can click "Graph" to visualize the time series, and you can limit the time series to a particular dimension using {dimension="mydimension"}: