Grafana running on Pi at 192.168.1.23
Prometheus running on Pi at 192.168.1.41
Data source added to Grafana as
http://192.168.1.41:9090
Tested, green tick, all ok.
Yet when I try and build a dashboard, the graph shows
process_cpu_seconds_total{instance="localhost:9090", job="prometheus"}
How do I get the data to come from http://192.168.1.41:9090 and not localhost?
Thank you.
Added node_exporter, but still showing localhost data.
Edited /home/pi/prometheus prometheus.yml to add
- job_name: "node_exporter"
static_configs:
- targets: ["localhost:9100"]
Back on Grafana, I don’t want this one:
process_cpu_seconds_total{instance="localhost:9090", job="prometheus"}
I do want this one, but on 192.168.1.41, not localhost.
process_cpu_seconds_total{instance="localhost:9100", job="node_exporter"}
Hi,
If your node exporter running on 0.0.0.0:9100 you just modify the prometheus.yaml as follow:
- job_name: "node_exporter"
static_configs:
- targets: ["192.168.1.41:9100"]
Restart prometheus
Regards,
Fadjar Tandabawana
1 Like