Skip to content

Commit

Permalink
Merge pull request #5 from mia-platform/feat/additionalScrapeConfigs
Browse files Browse the repository at this point in the history
feat: add additionalScrapeConfig support for prometheus
  • Loading branch information
JGiola authored Mar 16, 2022
2 parents 63a6a49 + 478563b commit 938f731
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/monitoring/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: monitoring
version: 1.1.0
version: 1.1.1
kubeVersion: ">= 1.20.0-0"
appVersion: "v0.53.1"
description: "A Kubernetes monitoring stack based on Prometheus Operator"
Expand Down
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 938f731

Please sign in to comment.