promql   10

Analyse a metric by kernel version – Robust Perception | Prometheus Monitoring Experts
avg without (instance)(
node_sockstat_TCP_tw
* on(instance) group_left(release)
node_uname_info
)
What this does is add the release label (the kernel version) to the node_sockstat_TCP_tw metric based on the instance label for node_uname_info being the same. Finally we average the values, ignoring the instance label - which should produce a per kernel version result.

This is useful only as long as all the kernel versions are seeing about the same load. Let's say we wanted to normalise by the number of in-use TCP sockets, we can do:

avg without (instance)(
node_sockstat_TCP_tw
/
node_sockstat_TCP_inuse
* on(instance) group_left(release)
node_uname_info
)
prometheus  promql 
7 weeks ago by some_hren

related tags

bitnami  grafana  monitoring  prometheus  slo 

Copy this bookmark:



description:


tags: