# How to add two elasticsearch's metric in one query?

**URL:** <https://community.grafana.com/t/how-to-add-two-elasticsearchs-metric-in-one-query/39204>\
**Category:** Elasticsearch\
**Created:** [November 12, 2020, 8:44pm UTC](https://community.grafana.com/t/how-to-add-two-elasticsearchs-metric-in-one-query/39204 "2020-11-12T20:44:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jalaltabatabaii](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jalaltabatabaii/32/29244_2.png) [@jalaltabatabaii](https://community.grafana.com/u/jalaltabatabaii)\
**Post date:** [November 12, 2020, 8:44pm UTC](https://community.grafana.com/t/how-to-add-two-elasticsearchs-metric-in-one-query/39204/1 "2020-11-12T20:44:07Z")

</div>

for example have sum of this 2 metrics in one graph (node\_memory\_MemAvailable\_bytes{instance=“192.168.1.10:9100”,job=“nodeexporter”}) + (node\_memory\_MemAvailable\_bytes{instance=“192.168.1.20:9100”,job=“nodeexporter”})

---

<div class="post-metadata">

**Author:** ![fadjar340](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/fadjar340/32/10236_2.png) [@fadjar340](https://community.grafana.com/u/fadjar340)\
**Post date:** [November 13, 2020, 1:25pm UTC](https://community.grafana.com/t/how-to-add-two-elasticsearchs-metric-in-one-query/39204/2 "2020-11-13T13:25:00Z")

</div>

What index do you use for that query?

---

<div class="post-metadata">

**Author:** ![tadat171](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/tadat171/32/12495_2.png) [@tadat171](https://community.grafana.com/u/tadat171)\
**Post date:** [November 14, 2020, 6:15am UTC](https://community.grafana.com/t/how-to-add-two-elasticsearchs-metric-in-one-query/39204/3 "2020-11-14T06:15:06Z")

</div>

I think Meta query is your answer 😃  
[https://grafana.com/grafana/plugins/goshposh-metaqueries-datasource](https://grafana.com/grafana/plugins/goshposh-metaqueries-datasource)
