How to plot two different metrics value in same graph ( prometheus data source )

I am using Prometheus as my data source and plotting in grafana.

I have two different metrics like “system_total_processes” and “system_process_running”. Currently i have plotted as different graphs for both but I want to plot in same graph with legends.

I have plotted with below query and both in different graph.


I am sure there must be change in prometheus query but how to write that so that grafana plot in one graph.

Any pointer will be appreciated.

You have not said what type of panel/graph but for most you should be able to press the + Query button shown below the query to add a second query. And so on for more queries on the same panel.

Yes, it is graph panel. And yes you are right, we can add multiple queries and using that we can achieve that. Thank you for your help.