Closed mpkonmbk closed 3 months ago
The prometheus output starts with the following?
/ # curl http://host.docker.internal:9090/metrics
Is that the gibberish?
Sorry, I was under the impression, based on the error output, that the # HELP
and # TYPE
annotations are not valid - and what Grafana doesn't like. I also haven't seen anything like it in my (perhaps limited) experience with Prometheus.
The initial line of course is not part of the output, just wanted to be clear where did I get the output from.
I have since switched to using Graphite, but I'd much rather use Prometheus as I find its data format and ecosystem much superior in my use case. If there's something you can tell I am missing in my config or whatever, I'd appreciate the support!
and what Grafana doesn't like
The output from the prometheus endpoint in OhmGraphite is for prometheus, not for Grafana (ie: you don't point Grafana directly at OhmGraphtie but instead at an prometheus instance). So Grafana should never see the # Help
and # Type
output.
Prometheus has a builtin expression browser if you want to verify that OhmGraphite data is being stored: https://prometheus.io/docs/prometheus/latest/getting_started/#using-the-expression-browser
Indeed, putting an actual Prometheus server between OhmGraphite and Grafana "fixed" the issue (though there's no fixing me being lazy for not doing that in the first place). Thanks for the assist :v: and for this incredibly useful tool
Here's the output I got from Grafana when trying to add the OhmGraphite Prometheus data source:
cURLing the endpoint, I can see some gibberish indeed, before finally the output shows some metrics:
any help is much appreciated!