mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
added extra scrape config option (#7984)
Signed-off-by: André Bauer <andre.bauer@kiwigrid.com>
This commit is contained in:
committed by
k8s-ci-robot
parent
35ff7a9036
commit
a04cbed911
@@ -1,5 +1,5 @@
|
||||
name: prometheus
|
||||
version: 7.1.4
|
||||
version: 7.2.0
|
||||
appVersion: 2.4.3
|
||||
description: Prometheus is a monitoring system and time series database.
|
||||
home: https://prometheus.io/
|
||||
|
||||
@@ -274,6 +274,7 @@ Parameter | Description | Default
|
||||
`serverFiles.alerts` | Prometheus server alerts configuration | `{}`
|
||||
`serverFiles.rules` | Prometheus server rules configuration | `{}`
|
||||
`serverFiles.prometheus.yml` | Prometheus server scrape configuration | example configuration
|
||||
`extraScrapeConfigs` | Prometheus server additional scrape configuration | ""
|
||||
`networkPolicy.enabled` | Enable NetworkPolicy | `false` |
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||
|
||||
@@ -19,6 +19,9 @@ data:
|
||||
{{- end }}
|
||||
{{ toYaml $value | default "{}" | indent 4 }}
|
||||
{{- if eq $key "prometheus.yml" -}}
|
||||
{{- if $root.Values.extraScrapeConfigs }}
|
||||
{{ tpl $root.Values.extraScrapeConfigs $root | indent 4 }}
|
||||
{{- end -}}
|
||||
{{- if $root.Values.alertmanager.enabled }}
|
||||
alerting:
|
||||
alertmanagers:
|
||||
|
||||
@@ -1053,6 +1053,25 @@ serverFiles:
|
||||
action: replace
|
||||
target_label: kubernetes_pod_name
|
||||
|
||||
# adds additional scrape configs to prometheus.yml
|
||||
# must be a string so you have to add a | after extraScrapeConfigs:
|
||||
# example adds prometheus-blackbox-exporter scrape config
|
||||
extraScrapeConfigs:
|
||||
# - job_name: 'prometheus-blackbox-exporter'
|
||||
# metrics_path: /probe
|
||||
# params:
|
||||
# module: [http_2xx]
|
||||
# static_configs:
|
||||
# - targets:
|
||||
# - https://example.com
|
||||
# relabel_configs:
|
||||
# - source_labels: [__address__]
|
||||
# target_label: __param_target
|
||||
# - source_labels: [__param_target]
|
||||
# target_label: instance
|
||||
# - target_label: __address__
|
||||
# replacement: prometheus-blackbox-exporter:9115
|
||||
|
||||
networkPolicy:
|
||||
## Enable creation of NetworkPolicy resources.
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user