How To Use Prometheus To Store Data To Be Visualized By Grafana
Solution 1:
Since I did something similar, I can give you a few pointers. You can use pushgateway for "ephemeral and batch jobs to expose their metrics to Prometheus" as it says on there github page.
I think you need the summary metric, but to be sure please read the docs on the types of metrics on the prometheus docs page.
You did the first part, you exposed the metrics that you want through pushgateway, you can always check that it works through your web browser or with curl:
YOURIP:9091
If you can see some data on that port, you have to setup your configuration on the prometheus server.
You need to tell the prometheus server that is should scrape your nodes pushgateway's metrics. The file you're looking for is "prometheus.yml" its location depends on where you installed the prometheus server.
When you open it you should write something like this:
-job_name:'SomeJob-Name'static_configs:-targets: ['YourIPADDRESS:9091']
labels:environment:'prod'
After that restart your prometheus server and the data from your node should be visible on the path YourPrometheusIP:9090/targets.
Post a Comment for "How To Use Prometheus To Store Data To Be Visualized By Grafana"