Thanks for your reply. My question is about the PromQL calculation on metrics.
Let's say I want to query the following: curl 'http://192.168.56.103:9090/api/v1/query?query=go_memstats_gc_cpu_fraction' curl 'http://192.168.56.103:9090/api/v1/query?query=node_cpu_seconds_total' Can I send one HTTP request only to fetch both metrics? That means, I would receive a JSON with two time-series. Is that possible? Thanks On Wednesday, 11 March 2020 18:25:41 UTC-4, Christian Hoffmann wrote: > > Hi, > > On 3/11/20 11:00 PM, Hakim Kahlouche wrote: > > Is it possible to fetch time-series for multiple metric names using one > > single HTTP API query request, or is there a restriction of one HTTP > > request per metric name? > > > > Let's say I want to query : > > > > *query=go_memstats_gc_cpu_fraction _and_ node_cpu_seconds_total * > > * > > * > > Is it possible to query those two metrics with one single HTTP request? > > If so, how could I do that? > > What exactly are you trying to do? > > It is possible to make PromQL queries which use calculations based on > multiple metrics. There is "and", "or" and other operators. > > If you want to get the raw data via the API instead, you might have > better luck by using the federate endpoint: > https://prometheus.io/docs/prometheus/latest/federation/ > > > Kind regards, > Christian > -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6c62a522-c6aa-4f53-b34c-48c70b1a2cc8%40googlegroups.com.

