# Comparing one metric against another

**URL:** <https://discuss.prometheus.io/t/comparing-one-metric-against-another/1410>\
**Category:** General Help/Support\
**Created:** [January 22, 2023, 8:22pm UTC](https://discuss.prometheus.io/t/comparing-one-metric-against-another/1410 "2023-01-22T20:22:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wildowl](https://avatars.discourse-cdn.com/v4/letter/w/cc9497/32.png) [@wildowl](https://discuss.prometheus.io/u/wildowl)\
**Post date:** [January 22, 2023, 8:22pm UTC](https://discuss.prometheus.io/t/comparing-one-metric-against-another/1410/1 "2023-01-22T20:22:10Z")

</div>

Hello,

I’m trying to get the right syntax to check whether the **node\_network\_receive\_bytes\_total** is greater than 3% of **node\_network\_speed\_bytes**.

The query below works:

```auto
(irate(node_network_receive_bytes_total{instance="server.example.com:9100",device="enp2s0"}[1m]) * 8 / 1024 / 1024) > (((3 / 100) * node_network_speed_bytes{instance="server.example.com:9100",device="enp2s0"}) * 8 / 1024 / 1024)

```

But when I try to cut the **instance=“[server.example.com:9100](http://server.example.com:9100)”** from the query above, it doesn’t show anything, no error either.

My goal is to check whether the **node\_network\_receive\_bytes\_total** is greater than some defined percent of **node\_network\_speed\_bytes** but without having to write such query for every single host, is this somehow doable?

---

<div class="post-metadata">

**Author:** ![wildowl](https://avatars.discourse-cdn.com/v4/letter/w/cc9497/32.png) [@wildowl](https://discuss.prometheus.io/u/wildowl)\
**Post date:** [January 23, 2023, 11:19am UTC](https://discuss.prometheus.io/t/comparing-one-metric-against-another/1410/2 "2023-01-23T11:19:49Z")

</div>

Hm, seems it’s working after all without providing the ‘instance’.
