Quick question,Is there anyway to periodically export data from prometheus to json so I can build the status table as required? Ideally it would be the inverse of a scrape, and available via a rest type service.
On 14 January 2017 at 20:08, <dya...@gmail.com> wrote:Quick question,Is there anyway to periodically export data from prometheus to json so I can build the status table as required? Ideally it would be the inverse of a scrape, and available via a rest type service.If there's particular data you want you can use the /query endpoint to pull it out.
If you want everything you can use the Go or Python parsers with the /federation endpoint however you may run into scaling issues as the /federation endpoint isn't intended for grabbing everything.
I have similar needs, I have found grafana tables a bit limited.
Can you describe how did you push the data into elasticsearch?
I know how to extract out of prometheus, but I'm not familiar with elasticsearch documents format and how to best represent metrics and labels.
Thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "Prometheus Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/prometheus-users/jescPNRdArI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3f45a6ed-0567-4a9f-bb70-90e82e6c738f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.