Setting up Netdata -> Consul -> Prometheus Stack

705 Views Asked by At

According to the document: https://github.com/firehol/netdata/wiki/Netdata,-Prometheus,-and-Grafana-Stack

We can use Consul as the registry where all the Netdata agents will be registering and later Prometheus will scrape the Consul registry to get the registered endpoints and scrap the data out.

I tried looking for documents to set it up, but I was unable to find it, is there any document on setting up the stack.

2

There are 2 best solutions below

0
On

First you'll need to register the netdata instances in Consul. if you're running netdata in Docker containers you can use something like https://github.com/gliderlabs/registrator for zero effort registration, if not, use service definition files or Consul's catalog API.

Here's an example for scraping Consul services with Prometheus - https://www.robustperception.io/finding-consul-services-to-monitor-with-prometheus/

0
On

You can now drop Prometheus and query/visualize aggregated metrics right from the Netdata Cloud hose using the new and official Netdata plugin for Grafana.

I have seen somewhere that Netdata will release official support for Consul.