Kubernetes operator to create/configure/manage Prometheus clusters atop Kubernetes.
Questions tagged [prometheus-operator]
396 questions
21
votes
5 answers
Use Prometheus operator with DB volume for k8s
We are trying to monitor K8S with Grafana and Prometheus Operator. Most of the metrics are working as expected and I was able to see the dashboard with the right value, our system contain 10 nodes with overall 500 pods. Now when I restarted…

JME
- 881
- 2
- 11
- 23
18
votes
4 answers
prometheus operator - enable monitoring for everything in all namespaces
I want to monitor a couple applications running on a Kubernetes cluster in namespaces named development and production through prometheus-operator.
Installation command used (as per Github) is:
helm install prometheus-operator…

Rama
- 420
- 1
- 4
- 14
16
votes
5 answers
What is the difference between the core os projects kube-prometheus and prometheus operator?
The github repo of Prometheus Operator https://github.com/coreos/prometheus-operator/ project says that
The Prometheus Operator makes the Prometheus configuration Kubernetes native and manages and operates Prometheus and Alertmanager clusters. It…

SandeepVBende
- 191
- 2
- 8
15
votes
2 answers
Omit labels from series results PromQL
Suppose I write a basic PromQL query like this
Query:
kube_deployment_spec_replicas{}…

Edward
- 153
- 1
- 1
- 6
15
votes
4 answers
How to silence Prometheus Alertmanager using config files?
I'm using the official stable/prometheus-operator chart do deploy Prometheus with helm.
It's working good so far, except for the annoying CPUThrottlingHigh alert that is firing for many pods (including the own Prometheus' config-reloaders…

Eduardo Baitello
- 10,469
- 7
- 46
- 74
13
votes
5 answers
How can we add extra label to Prometheus metrics?
Suppose we are collecting the same metrics for one month and now we want to modify the metrics to have extra label (in the old data as well), how can we do that.
Existing metric:…

Nipun Talukdar
- 4,975
- 6
- 30
- 42
11
votes
1 answer
helm values from kubernetes secrets?
I am using this chart : https://github.com/helm/charts/tree/master/stable/prometheus-mongodb-exporter
This chart requires MONGODB_URI environment variable or mongodb.uri populated in values.yaml file,
Since this is a connection string I don't want…

Asav Patel
- 1,113
- 1
- 7
- 25
11
votes
3 answers
ServiceMonitor not found in monitoring.coreos.com/v1
I am using kubeadm to deploy single node kubernetes 1.11 cluster.
I am unable to find servicemonitor resources.
➜ kube-prometheus git:(master) ✗ kubectl get servicemonitor
error: the server doesn't have a resource type "servicemonitor"
➜ …

Steve
- 863
- 3
- 9
- 21
11
votes
2 answers
what is difference between = and =~ operator in prometheus?
What is the meaning of =~ operator in prometheus metrics?
Can any help me what is the exact difference between = and =~ operator?
for ex .
process_cpu_seconds_total{instance="test"}
process_cpu_seconds_total{instance=~"test"}
The results are…

Sagar Vaghela
- 1,165
- 5
- 20
- 38
10
votes
2 answers
How to create grafana configmap for datasources?
I am trying to create a configmap for a Grafana datasource, using an instance of Grafana from the Kube-Prometheus-Stack helm chart https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
I am aware for dashboards,…

dwlian
- 111
- 1
- 2
- 4
9
votes
1 answer
How to set a label in Service monitor so it appears in Prometheus metrics?
I want to set targetLabels in Service monitor like key value map so it appears in the Prometheus metrics.
I tried with relabeling in service monitor but it didnt work.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name:…

Rad4
- 1,936
- 8
- 30
- 50
9
votes
2 answers
How to enable persistence in helm prometheus-operator
I am using the prometheus-operator helm chart. I want the data in prometheus server to persist. But open restart of the prometheus StatefulSet, the data disappears. When inspecting the yaml definitions of the associated StatefulSet and Pod objects,…

Jack Reilly
- 201
- 1
- 2
- 6
8
votes
2 answers
Add PodMonitor or ServiceMonitor outside of kube-prometheus-stack helm values
Using kube-prometheus-stack helm chart, version 35.2.0. So far, I add my custom PrometheusRules, PodMonitor and ServiceMonitor via helm custom values.
helm install my-kubpromstack prometheus-community/kube-prometheus-stack -n monitoring \
-f…

Polymerase
- 6,311
- 11
- 47
- 65
8
votes
1 answer
Prometheus: Monitor all services without creating ServiceMonitor for each service?
I'm using this prometheus helm chart.
I was wondering if it is possible to setup the prometheus operator to automatically monitor every service in the cluster or namespace without having to create a ServiceMonitor for every service.
With the current…

Jonas
- 7,089
- 15
- 49
- 110
8
votes
2 answers
K8S - using Prometheus to monitor another prometheus instance in secure way
I've installed Prometheus operator 0.34 (which works as expected) on cluster A (main prom)
Now I want to use the federation option,I mean collect metrics from other Prometheus which is located on other K8S cluster B
Secnario:
have in cluster A…

Rayn D
- 579
- 1
- 13
- 29