'Prometheus Relabeling for Cassandra
I would like to get help with relabeling in prometheus.
I am trying to replace instance with nodename, so here in prometheus before relabeling I would like to have this Nodename
We are using kube-prometheus and we have 5 clusters where is cassandra running in 6 pods.
I want to use this because this dashboard has label with instances dashboard
My attempts to workaround this with * on(pod) group_left(node) kube_pod_info
failed, it will duplicate give false number and so I guess the best approach would be to replace the instance with the name or maybe just add another label with the nodename instead of replacing, I have tried a lot of things but this dashboard is just not good fit for multiple clusters and multiple instances of cassandra with same names. Is it possible to use relabeling even when I would not specify the target because the targets are being auto discovered? Or what do you think is the best approach in this case?
Thanks
Edit: In the end I just edited ip address to pod names instead of node names, which eventually was bad idea. Can be closed
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|