Skip to content

[kube-prometheus-stack] How to disable noisy alerts? <not a bug> #5290

Open
@rwlove

Description

@rwlove

Describe the bug a clear and concise description of what the bug is.

How in the world do I disable an alert like this one? I've been playing with the below snippit in values.yaml, but I cannot figure it out.

    kubeApiServer:
      enabled: true
      endpoints: ["192.168.1.9", "192.168.4.9", "192.168.4.10"]
      serviceMonitor:
        metricRelabelings:
          # Drop high cardinality labels                                                                                                                                      
          - action: drop
            sourceLabels: ["__name__"]
            regex: (apiserver|etcd|rest_client)_request(|_sli|_slo)_duration_seconds_bucket
          - action: drop
            sourceLabels: ["__name__"]
            regex: (apiserver_response_sizes_bucket|apiserver_watch_events_sizes_bucket|apiserver_request_total)
          - action: drop
            sourceLabels: ["__name__"]
            regex: code_verb:apiserver_request_total:increase1h[30d]
          - action: drop
            sourceLabels: ["__name__"]
            regex: '.*apiserver_request_total.*'

Image

What's your helm version?

N/A

What's your kubectl version?

1.31

Which chart?

kube-promethues-stack

What's the chart version?

69.0.0

What happened?

No response

What you expected to happen?

No response

How to reproduce it?

No response

Enter the changed values of values.yaml?

No response

Enter the command that you execute and failing/misfunctioning.

N/A

Anything else we need to know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions