prom.png
Data flow: Consul -> Prometheus -> Grafana.
In each Consul agent Prometheus config should be present as described here https://www.consul.io/docs/agent/options.html#telemetry-prometheus_retention_time.
Job collector should be added in Prometheus config like:
scrape_configs:
- job_name: 'consul'
metrics_path: /v1/agent/metrics
params:
format: ['prometheus']
static_configs:- targets:
- 'node1_host:8500'
- 'node2_host:8500'
- targets: