Mixing two different metrics in the results of same PromQL query doesn't 
make sense, because those values represent different things.  For example 
you might get back 4 values from the query, 2 of which are numbers of CPU 
cores and 2 of which are numbers of bytes, which are not comparable and 
indeed have very different magnitude.  For this reason it's intentionally 
not straightforward to do.

What you really want is to overlay two *separate* PromQL queries onto the 
same graph, where the separate queries can be displayed with different 
colours, different scales and axes etc.  That will be a function of 
whatever dashboarding tool you are using - e.g. grafana is a common 
choice.  In grafana it's easy to add multiple queries to a panel.  Note 
that if you have questions about grafana, it has its own separate 
discussion forum.

On Tuesday, 7 September 2021 at 06:10:06 UTC+1 [email protected] wrote:

> Hi all,
> I wanted to ask a question , I am trying to perform cpu_cores and 
> memory_bytes query on the same graph for a particular namespace.How can i 
> write a query for this .I am new to promql programming.Would appreciate it 
> if anyone could help.
> Thanks 
>

-- 
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/5ee7339a-053d-4891-962c-c666488f7a80n%40googlegroups.com.

Reply via email to