From charlesreid1

No edit summary
No edit summary
Line 8: Line 8:


Link to guide: https://github.com/firehol/netdata/wiki/Netdata,-Prometheus,-and-Grafana-Stack
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.
[[Image:PrometheusFirstVisit.png|500px]]
===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
[[Image:NetdataBackendPrometheus.png|500px]]
===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==
==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 <code>{dimension="mydimension"}</code>:


[[Image:PrometheusNetdata.png|500px]]
[[Image:PrometheusNetdata.png|500px]]

Revision as of 01:23, 19 January 2018

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.

PrometheusFirstVisit.png

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

NetdataBackendPrometheus.png

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

PrometheusNetdata.png

Flags