Hey guys,
I’ve been working with Prometheus to gather data for an AI project (i.e., all of the gathered raw data is needed) and was able to set it up correctly. However, I now wish to export the raw data and I tried using the HTTP API. It works with 1 metric but I wasn’t able to get it working for multiple. This is my current solution:
<http://xxxx:9090/api/v1/query_range?query={__name__=~"up|http://xxxx:9090/api/v1/query_range?query={__name__=~"up> | node_disk_read_bytes_total"}&start=2021-04-08T15:10:30.781Z&end=2021-04-08T17:11:00.781Z&step=1s
What am I doing wrong? Is it even possible? Is there a better solution for exporting all of the gathered metric data? Otherwise I may have to turn to a Python client…