Skip to content

Commit

Permalink
Fix last remaining k3s duplicate metrics (#30)
Browse files Browse the repository at this point in the history
Signed-off-by: Michele Palazzi <sysdadmin@m1k.cloud>
  • Loading branch information
ironashram authored Mar 16, 2024
1 parent 27b6785 commit c618452
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/templates/kube-prometheus-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ spec:
resources:
requests:
storage: 50Gi
prometheusOperator:
admissionWebhooks:
patch:
Expand Down Expand Up @@ -111,6 +112,10 @@ spec:
- action: replace
sourceLabels: [__metrics_path__]
targetLabel: metrics_path
- action: replace
sourceLabels: [__address__]
targetLabel: instance
replacement: kub1k-kubelet
metricRelabelings:
- action: drop
regex: (apiserver_request_duration_seconds_bucket|apiserver_request_body_size_bytes_bucket|apiserver_response_sizes_bucket|apiserver_watch_events_sizes_bucket|apiserver_request_sli_duration_seconds_bucket)
Expand All @@ -124,6 +129,9 @@ spec:
- action: drop
regex: (workqueue_work_duration_seconds_bucket)
sourceLabels: [__name__]
- action: drop
regex: "kubelet_node_name"
sourceLabels: [__name__]
kubeControllerManager:
endpoints:
Expand Down

0 comments on commit c618452

Please sign in to comment.