Skip to content

Commit

Permalink
add platform.apolo.us/scrape-metrics label to service monitor (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
zubenkoivan authored Sep 3, 2024
1 parent 03f441f commit 4fe482c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/platform-reports/templates/metrics-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ metadata:
name: {{ include "platformReports.metricsExporter.fullname" . }}
labels: {{ include "platformReports.labels.standard" . | nindent 4 }}
service: platform-metrics-exporter
platform.apolo.us/scrape-metrics: "true"
spec:
selector:
matchLabels:
Expand Down
34 changes: 34 additions & 0 deletions charts/platform-reports/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,17 @@ kube-prometheus-stack:
kubeApiServer:
enabled: true

serviceMonitor:
additionalLabels:
platform.apolo.us/scrape-metrics: "true"

kubelet:
enabled: true

serviceMonitor:
additionalLabels:
platform.apolo.us/scrape-metrics: "true"

kubeControllerManager:
enabled: false

Expand Down Expand Up @@ -139,6 +147,11 @@ kube-prometheus-stack:

priorityClassName: ""

prometheus:
monitor:
additionalLabels:
platform.apolo.us/scrape-metrics: "true"

nodeExporter:
enabled: true

Expand All @@ -164,6 +177,11 @@ kube-prometheus-stack:
rollingUpdate:
maxUnavailable: 100%

prometheus:
monitor:
additionalLabels:
platform.apolo.us/scrape-metrics: "true"

prometheusOperator:
image:
registry: quay.io
Expand Down Expand Up @@ -194,6 +212,10 @@ kube-prometheus-stack:

priorityClassName: ""

serviceMonitor:
additionalLabels:
platform.apolo.us/scrape-metrics: "true"

prometheus:
prometheusSpec:
image:
Expand Down Expand Up @@ -227,11 +249,19 @@ kube-prometheus-stack:
requests:
storage: 10Gi

serviceMonitorSelector:
matchLabels:
platform.apolo.us/scrape-metrics: "true"

externalLabels:
cluster: ""

priorityClassName: ""

serviceMonitor:
additionalLabels:
platform.apolo.us/scrape-metrics: "true"

alertmanager:
alertmanagerSpec:
image:
Expand All @@ -245,6 +275,10 @@ kube-prometheus-stack:

priorityClassName: ""

serviceMonitor:
additionalLabels:
platform.apolo.us/scrape-metrics: "true"

grafana:
enabled: false

Expand Down

0 comments on commit 4fe482c

Please sign in to comment.