# Add a Metric name to a Query result

**URL:** https://discuss.prometheus.io/t/add-a-metric-name-to-a-query-result/1603
**Category:** PromQL
**Created:** [April 19, 2023, 2:00pm UTC](https://discuss.prometheus.io/t/add-a-metric-name-to-a-query-result/1603 "2023-04-19T14:00:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DGRFL](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/dgrfl/32/687_2.png) [@DGRFL](https://discuss.prometheus.io/u/DGRFL)
#### Post date: [April 19, 2023, 2:00pm UTC](https://discuss.prometheus.io/t/add-a-metric-name-to-a-query-result/1603/1 "2023-04-19T14:00:54Z")

</div>

I have 2 PromQL queries that require a “similar output” (because I need to place them in 1 Grafana Table)

```auto
Query 1
JvmActiveButNotExpectedTotal
ResultSet 1
JvmActiveButNotExpectedTotal{env="dev"} ---> 8
JvmActiveButNotExpectedTotal{env="qa"} ---> 18

Query 2
count by (env) (sib_depth{ }/ sib_max{} > 0.1)
Resultset 2 
{env="dev"} ---> 10
{env="qa"} ---> 3

```

The first resultset has a \_\_ name \_\_ indication that can be used in Grafana Transformations.  
Is there a way to have the second resultset also returning some kind of “metric / query name”?
