Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
[stable/prometheus-operator]: allow to disable time and network rules (
Browse files Browse the repository at this point in the history
…#16037)

Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 authored and k8s-ci-robot committed Aug 2, 2019
1 parent c83336a commit 779f3eb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion stable/prometheus-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: prometheus-operator
sources:
- https://github.com/coreos/prometheus-operator
- https://coreos.com/operators/prometheus
version: 6.3.1
version: 6.4.0
appVersion: 0.31.1
home: https://github.com/coreos/prometheus-operator
keywords:
Expand Down
4 changes: 3 additions & 1 deletion stable/prometheus-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ The following tables list the configurable parameters of the prometheus-operator
| `defaultRules.rules.kubernetesResources` | Create Kubernetes Resources default rules| `true` |
| `defaultRules.rules.kubernetesStorage` | Create Kubernetes Storage default rules| `true` |
| `defaultRules.rules.kubernetesSystem` | Create Kubernetes System default rules| `true` |
| `defaultRules.rules.node` | Create Node default rules| `true` |
| `defaultRules.rules.node` | Create Node default rules | `true` |
| `defaultRules.rules.network` | Create networking default rules | `true` |
| `defaultRules.rules.PrometheusOperator` | Create Prometheus Operator default rules| `true` |
| `defaultRules.rules.prometheus` | Create Prometheus default rules| `true` |
| `defaultRules.rules.time` | Create time default rules | `true` |
| `defaultRules.labels` | Labels for default rules for monitoring the cluster | `{}` |
| `defaultRules.annotations` | Annotations for default rules for monitoring the cluster | `{}` |
| `additionalPrometheusRules` | *DEPRECATED* Will be removed in a future release. Please use **additionalPrometheusRulesMap** instead. List of `prometheusRule` objects to create. See https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusrulespec. | `[]` |
Expand Down
7 changes: 5 additions & 2 deletions stable/prometheus-operator/ci/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ defaultRules:
kubeApiserver: true
kubePrometheusNodeAlerting: true
kubePrometheusNodeRecording: true
kubeScheduler: true
kubernetesAbsent: true
kubernetesApps: true
kubernetesResources: true
kubernetesStorage: true
kubernetesSystem: true
kubeScheduler: true
network: true
node: true
prometheusOperator: true
prometheus: true
prometheusOperator: true
time: true

## Labels for default rules
labels: {}
## Annotations for default rules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated from 'node-network' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml
# Do not change in-place! In order to change this file first read following link:
# https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
{{- if and .Values.defaultRules.create }}
{{- if and .Values.defaultRules.create .Values.defaultRules.rules.network }}
apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
kind: PrometheusRule
metadata:
Expand Down Expand Up @@ -41,4 +41,4 @@ spec:
for: 2m
labels:
severity: warning
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Generated from 'node-time' group from https://raw.githubusercontent.com/coreos/kube-prometheus/master/manifests/prometheus-rules.yaml
# Do not change in-place! In order to change this file first read following link:
# https://github.com/helm/charts/tree/master/stable/prometheus-operator/hack
{{- if and .Values.defaultRules.create }}
{{- if and .Values.defaultRules.create .Values.defaultRules.rules.time }}
apiVersion: {{ printf "%s/v1" (.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
kind: PrometheusRule
metadata:
Expand All @@ -27,4 +27,4 @@ spec:
for: 2m
labels:
severity: warning
{{- end }}
{{- end }}
7 changes: 5 additions & 2 deletions stable/prometheus-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,18 @@ defaultRules:
kubeApiserver: true
kubePrometheusNodeAlerting: true
kubePrometheusNodeRecording: true
kubeScheduler: true
kubernetesAbsent: true
kubernetesApps: true
kubernetesResources: true
kubernetesStorage: true
kubernetesSystem: true
kubeScheduler: true
network: true
node: true
prometheusOperator: true
prometheus: true
prometheusOperator: true
time: true

## Labels for default rules
labels: {}
## Annotations for default rules
Expand Down

0 comments on commit 779f3eb

Please sign in to comment.