Skip to content

Commit

Permalink
feat: add additionalScrapeConfig support for prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
verdienansein committed Mar 15, 2022
1 parent 63a6a49 commit fb9b245
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/monitoring/templates/definitions/_prometheus.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ Create the name for the additional scraping config secret
- "__tmp_hash"
regex: "$(SHARD)"
action: "keep"
{{- if .Values.prometheus.additionalScrapeConfigs }}
{{ .Values.prometheus.additionalScrapeConfigs }}
{{- end -}}
{{- end -}}

{{/*
Expand Down
2 changes: 2 additions & 0 deletions charts/monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ prometheus:
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#remotewritespec
remoteWrite: []

additionalScrapeConfigs: ""

# Enable the monitor for the DNS metrics
enableDNSMonitor: true

Expand Down

0 comments on commit fb9b245

Please sign in to comment.