Skip to content

Commit

Permalink
Helm chart: Allow additional scrape_configs to be added (#1134)
Browse files Browse the repository at this point in the history
* Allow additional scrape_configs to be added

* Bump version of loki-stack chart
  • Loading branch information
minhdanh authored and cyriltovena committed Oct 10, 2019
1 parent b94a436 commit eb9d732
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion production/helm/promtail/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: promtail
version: 0.12.2
version: 0.12.3
appVersion: v0.3.0
kubeVersion: "^1.10.0-0"
description: "Responsible for gathering logs and sending them to Loki"
Expand Down
3 changes: 3 additions & 0 deletions production/helm/promtail/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,6 @@ data:
- __meta_kubernetes_pod_container_name
target_label: __path__
{{- end }}
{{- if .Values.extraScrapeConfigs }}
{{- toYaml .Values.extraScrapeConfigs | nindent 4 }}
{{- end }}
3 changes: 3 additions & 0 deletions production/helm/promtail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ resources: {}
# Custom scrape_configs to override the default ones in the configmap
scrapeConfigs: []

# Custom scrape_configs together with the default ones in the configmap
extraScrapeConfigs: []

securityContext:
readOnlyRootFilesystem: true
runAsGroup: 0
Expand Down

0 comments on commit eb9d732

Please sign in to comment.