Skip to content

Commit

Permalink
bugfix: Update PrometheusAlert version 1.2.2
Browse files Browse the repository at this point in the history
        Update AlertmanagerConfig namespace setting
  • Loading branch information
dellnoantechnp committed Mar 12, 2024
1 parent e757e35 commit ec89bca
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/prometheusalert/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ maintainers:
sources:
- https://github.com/feiyu563/PrometheusAlert
type: application
version: 1.2.1
version: 1.2.2
3 changes: 3 additions & 0 deletions charts/prometheusalert/templates/AlertmanagerConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
{{- if .labels }}
{{ .labels | toYaml }}
{{- end }}
{{- if .namespace }}
namespace: {{ .namespace }}
{{- end }}
spec:
{{- if .inhibitRules }}
inhibitRules:
Expand Down
30 changes: 26 additions & 4 deletions charts/prometheusalert/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ AlertmanagerConfig:

## @param namespace, if you Crd Alertmanager has alertmanagerConfigNamespaceSelector, you need to set correct namespace.
## if you don't set alertmanagerConfigNamespaceSelector, you need to set prometheus-operator same namespace.
namespace: {}
namespace: ""

## @param labels, if you Crd Alertmanager has alertmanagerConfigSelector, you need to set this.
labels: {}
Expand Down Expand Up @@ -91,6 +91,28 @@ AlertmanagerConfig:
## Prometheus Ref: https://prometheus.io/docs/alerting/latest/configuration/#time_interval
## Crd Doc Ref: https://doc.crds.dev/github.com/prometheus-operator/kube-prometheus/monitoring.coreos.com/AlertmanagerConfig/v1alpha1@v0.13.0
## Example:
## - name: working
## timeIntervals:
## - weekdays:
## - "monday:friday"
## times:
## - startTime: "09:00"
## endTime: "19:00"
## - name: after_work
## timeIntervals:
## - weekdays:
## - "monday:friday"
## times:
## - startTime: "19:00"
## endTime: "24:00"
## - weekdays:
## - "monday:friday"
## times:
## - startTime: "00:00"
## endTime: "09:00"
## - weekdays:
## - "saturday"
## - "sunday"
## - name: holidays
## timeIntervals:
## - daysOfMonth:
Expand Down Expand Up @@ -153,10 +175,10 @@ AlertmanagerConfig:
## match:
## severity: warning
## activeTimeIntervals:
## - holidays
## - working
## muteTimeIntervals:
## - holidays
route: []
## - after_work
route: {}

config:
app_conf: |
Expand Down

0 comments on commit ec89bca

Please sign in to comment.