mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-22 03:25:53 +10:00
Merge pull request #1763 from code-chris/prometheus-optional-monitors
[bitnami/prometheus-operator]: Make ServiceMonitor of Prometheus and Alertmanager optional
This commit is contained in:
@@ -163,6 +163,7 @@ The following table lists the configurable parameters of the Prometheus Operator
|
||||
| `prometheus.service.loadBalancerIP` | `loadBalancerIP` if service type is `LoadBalancer` | `nil` |
|
||||
| `prometheus.service.loadBalancerSourceRanges` | Address that are allowed when svc is `LoadBalancer` | `[]` |
|
||||
| `prometheus.service.annotations` | Additional annotations for Prometheus service | `{}` |
|
||||
| `prometheus.serviceMonitor.enabled` | Creates a ServiceMonitor to monitor Prometheus itself | `true` |
|
||||
| `prometheus.serviceMonitor.interval` | Scrape interval (use by default, falling back to Prometheus' default) | `nil` |
|
||||
| `prometheus.serviceMonitor.metricRelabelings` | Metric relabeling | `[]` |
|
||||
| `prometheus.serviceMonitor.relabelings` | Relabel configs | `[]` |
|
||||
@@ -235,6 +236,7 @@ The following table lists the configurable parameters of the Prometheus Operator
|
||||
| `alertmanager.service.loadBalancerIP` | `loadBalancerIP` if service type is `LoadBalancer` | `nil` |
|
||||
| `alertmanager.service.loadBalancerSourceRanges` | Address that are allowed when svc is `LoadBalancer` | `[]` |
|
||||
| `alertmanager.service.annotations` | Additional annotations for Alertmanager service | `{}` |
|
||||
| `alertmanager.serviceMonitor.enabled` | Creates a ServiceMonitor to monitor Alertmanager | `true` |
|
||||
| `alertmanager.serviceMonitor.interval` | Scrape interval (use by default, falling back to Prometheus' default) | `nil` |
|
||||
| `alertmanager.serviceMonitor.metricRelabelings` | Metric relabeling | `[]` |
|
||||
| `alertmanager.serviceMonitor.relabelings` | Relabel configs | `[]` |
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{- if .Values.alertmanager.enabled }}
|
||||
{{- if and .Values.alertmanager.enabled .Values.alertmanager.serviceMonitor.enabled }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{{- if and .Values.prometheus.enabled }}
|
||||
{{- if and .Values.prometheus.enabled .Values.prometheus.serviceMonitor.enabled }}
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: ServiceMonitor
|
||||
metadata:
|
||||
|
||||
@@ -303,6 +303,9 @@ prometheus:
|
||||
annotations: {}
|
||||
|
||||
serviceMonitor:
|
||||
## Creates a ServiceMonitor to monitor Prometheus itself
|
||||
enabled: true
|
||||
|
||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
|
||||
##
|
||||
@@ -601,6 +604,9 @@ alertmanager:
|
||||
## If true, create a serviceMonitor for alertmanager
|
||||
##
|
||||
serviceMonitor:
|
||||
## Creates a ServiceMonitor to monitor Alertmanager
|
||||
enabled: true
|
||||
|
||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
|
||||
##
|
||||
|
||||
@@ -303,6 +303,9 @@ prometheus:
|
||||
annotations: {}
|
||||
|
||||
serviceMonitor:
|
||||
## Creates a ServiceMonitor to monitor Prometheus itself
|
||||
enabled: true
|
||||
|
||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
|
||||
##
|
||||
@@ -601,6 +604,9 @@ alertmanager:
|
||||
## If true, create a serviceMonitor for alertmanager
|
||||
##
|
||||
serviceMonitor:
|
||||
## Creates a ServiceMonitor to monitor Alertmanager
|
||||
enabled: true
|
||||
|
||||
## Scrape interval. If not set, the Prometheus default scrape interval is used.
|
||||
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user