How to add 2 metrics together?

I have 2 numeric metrics:
server1: 16
server2: 20

how do i add them together for use in graphs so that it shows server1+server2=36 as the value?

What is your data source type?

Each data source has its own query language to do this, and some don’t support arithmetic between multiple metrics.

data source is from elasticsearch. does elasticsearch data source support arithmetic between multiple metrics?

i have this issue too.hadn’t grafana any solution for it?

Have you looked at Transformations for Visualization panels?