Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Prometheus Instances with Single Prometheus-Operator

We are looking to implement a monitoring and alerting solution where we would like to give every functional unit there own prometheus instance.

Currently we are running it via prometheus-operator with single prometheus instance but now we need to scale it to multiple prometheus instances with a single operator.

Can someone please provide me to the right direction?

like image 803
sjm Avatar asked Jun 28 '26 21:06

sjm


1 Answers

This is quite straightforward: just deploy multiple Prometheus objects to your cluster with different configurations. prometheus-operator will manage any number of prometheus instances.

Added after comment clarification:

prometheus-operator is a piece of software running in your cluster that looks for new/changed/deleted objects with kind: Prometheus (and some others) and creates "regular" k8s objects based on Prometheus entities config.

You can absolutely install multiple instances of prometheus-operator chart (I'm assuming you mean chart that was named promethues-operator and now is renamed to https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack)

At any time there should be only one instance of prometheus-operator (software, not chart) running, so just make sure that any additional releases do not install prometheus-operator itself (software, not the chart). It is available as a values parameter to pass to helm:

prometheusOperator:
  enabled: false
like image 130
bjakubski Avatar answered Jul 01 '26 00:07

bjakubski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!