Grafana and Homer #525
-
Hi everyone, I'm trying to get some statistics with Homer and Grafana with this template : https://grafana.com/orgs/lmangani I tried adding Prometheus as datasource in Grafana but always get this answer : I've no issue with the : "wget http://10.0.0.70:8086/metrics" on the grafana server side. am I forgetting something ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Hello @chabeaumont The configuration seems incorrect. The /metrics endpoint to be scraped by Prometheus is served by heplify-server using the PROMADDR settings, ie:
So the correct scraper config would look like this:
I'm not sure what 10.0.0.70 might be in your setup, but the port doesn't make sense. |
Beta Was this translation helpful? Give feedback.
-
@chabeaumont sounds like a local network issue to me, is there a firewall or proxy in front of this deployment? |
Beta Was this translation helpful? Give feedback.
-
Wait a second @chabeaumont Grafana is NOT supposed to connect to any of our elements, Prometheus is.
So your Prometheus scraper needs to connect to heplify-server, and Grafana in turn connects to the Prometheus API I hope this clears the doubts up. Follow the docker examples as they contain all the relevant configuration at once. |
Beta Was this translation helpful? Give feedback.
-
@chabeaumont heplify-server has only API to provide internal statistics. To display the data you need Prometheus Server or InfluxDB and pull/push data from heplify-server to your Prometheus/InfluxDB As I see you have already InfluxDB - please add the influxdb source and get date from there |
Beta Was this translation helpful? Give feedback.
Hello @chabeaumont
The configuration seems incorrect. The /metrics endpoint to be scraped by Prometheus is served by heplify-server using the PROMADDR settings, ie:
So the correct scraper config would look like this:
I'm not sure what 10.0.0.70 might be in your setup, but the port doesn't make sense.
A full example is available here. Please confirm if this helps.