Closed aliartiza75 closed 5 years ago
Guys @davidkarlsen, @kflynn, kindly have a look at this issue. Thank you
@carrodher @javsalgar @AdamDang guys kindly have a look at the above issue.
Thank you
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
@carrodher @javsalgar @AdamDang kindly have a look at this issue.
Ey @aliartiza75, I'm sorry but I don't have experience using this chart. According to https://github.com/helm/charts/blob/master/stable/prometheus-operator/OWNERS try to ping @gianrubio @vsliouniaev @anothertobi. Surely they can help you regarding this issue
@gianrubio @vsliouniaev @anothertobi kindly have a look at this issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
@aliartiza75 that isn't possible to achieve with the chart. I suggest that any modifications to the alerts that you wish to do should be done yourself, deploying the custom alerts separately to the chart. The alerts are all sourced from several upstreams, which means that the chart would have to add custom templating logic to expose this kind of functionality.
@vsliouniaev thank you for response.
We have the same requirements.. We need to be able to route the alerts based on labels...
Added an example here recently: "Customising alert annotations"
The alerts in the chart are copied from: https://github.com/coreos/kube-prometheus/tree/master/jsonnet/kube-prometheus The example in kubernetes-monitoring can also be applied to the coreos/kube-prometheus context if needed.
It's a waste of effort to copy and maintain these alerts in a helm chart.
More info on the concept: https://monitoring.mixins.dev/
Custom rule labels can be added now via regular helm values using variable additionalRuleLabels
Hello everyone,
I am using
prometheus-operator
chart for monitoring.Problem Statement
I want to assign custom labels to default Prometheus alerts?
What I did
I used
defautlRules.labels.kind
parameter to assign a label to Prometheus alerts but that label was applied to rulesmetadata
level instead of individual rules.Label value
Applied values
Instead, I want the label on this alert level like this:
spec: groups:
Proposal
I want to change the structure of
defaultRules.rules.kubernetesResources
fromboolean
tojson
with following keys:enabled
key will be used to enable and disable the KubernetesResources alerts.labels
keys values will be used to assign custom labels to alertslabels
parameter.I want to make the above changes for these alerts.
defaultRules.rules.kubeApiserver
true
defaultRules.rules.kubePrometheusNodeAlerting
true
defaultRules.rules.kubePrometheusNodeRecording
true
defaultRules.rules.kubeScheduler
true
defaultRules.rules.kubernetesAbsent
true
defaultRules.rules.kubernetesApps
true
defaultRules.rules.kubernetesResources
true
defaultRules.rules.kubernetesStorage
true
defaultRules.rules.kubernetesSystem
true
Kindly reply asap as this change is required for a task I am working on.
Thank you