How to use kube-prometheus to monitoring an external kubernetes? #1666
-
Hello, Scenario is that I have a kube-prometheus in
So what is the best way to use kube-prometheus to monitoring multiple k8s?
Let |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From experience, I would leave the Prometheus separate in each cluster but writing via remote_write to a single point and from there it would be trivial for Grafana to read, this would need projects like Cortex, Thanos, VictoriaMetrics or similar. The Federation of Prometheus can also be an option, you will have a Prometheus that will be the gateway to any other, so you only need to expose the Prometheus of each cluster to this hub and Grafana would read from it only. Depending on how you do to monitor externally, you give up a part of the operator automation to do things manually (or manage other automation), where basically you will need to expose everything you want to monitor so that Cluster A can arrive at the required Cluster B endpoints, plus RBAC and network adjustments. For more information, you can start with these links: |
Beta Was this translation helpful? Give feedback.
From experience, I would leave the Prometheus separate in each cluster but writing via remote_write to a single point and from there it would be trivial for Grafana to read, this would need projects like Cortex, Thanos, VictoriaMetrics or similar.
The Federation of Prometheus can also be an option, you will have a Prometheus that will be the gateway to any other, so you only need to expose the Prometheus of each cluster to this hub and Grafana would read from it only.
Depending on how you do to monitor externally, you give up a part of the operator automation to do things manually (or manage other automation), where basically you will need to expose everything you want to monitor so that …