prometheus-operator / prometheus-operator

Prometheus Operator creates/configures/manages Prometheus clusters atop Kubernetes
https://prometheus-operator.dev
Apache License 2.0
9.16k stars 3.72k forks source link

Ability to add labels and annotations to prometheus rules from PrometheusRule CR #5050

Open gberche-orange opened 2 years ago

gberche-orange commented 2 years ago

What is missing?

Ability to add labels and annotations to prometheus rules from PrometheusRule CR

Why do we need it?

adding onto an existing off-the-shelf prometheus alert such as host-and-hardware/node-exporter.yml

1) a set of prometheus alert rule label such as the followings:

This is then used in the prometheus alert manager to group/filter out alerts from a new source, or of yet low confidence (despites their contributed severity level)

2) a set of prometheus alert rules annotations such as the followings:

Environment

https://github.com/prometheus-operator/prometheus-operator/releases/tag/v0.59.2

Anything else we need to know?:

See more details in the conversation at https://github.com/prometheus-operator/prometheus-operator/issues/4495#issuecomment-1251026056

JoaoBraveCoding commented 2 years ago

/assign

simonpasquier commented 1 week ago

relates to #7135