Skip to content

Commit

Permalink
[kube-prometheus-stack] make default datasources name configurable
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Gaiser <sebastiangaiser@users.noreply.github.com>
  • Loading branch information
sebastiangaiser committed May 23, 2024
1 parent 4bec76b commit 200d057
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 58.6.1
version: 58.7.0
appVersion: v0.73.2
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ data:
datasources:
{{- $scrapeInterval := .Values.grafana.sidecar.datasources.defaultDatasourceScrapeInterval | default .Values.prometheus.prometheusSpec.scrapeInterval | default "30s" }}
{{- if .Values.grafana.sidecar.datasources.defaultDatasourceEnabled }}
- name: Prometheus
- name: {{ .Values.grafana.sidecar.datasources.name }}
type: prometheus
uid: {{ .Values.grafana.sidecar.datasources.uid }}
{{- if .Values.grafana.sidecar.datasources.url }}
Expand Down
1 change: 1 addition & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@ grafana:
defaultDatasourceEnabled: true
isDefaultDatasource: true

name: Prometheus
uid: prometheus

## URL of prometheus datasource
Expand Down

0 comments on commit 200d057

Please sign in to comment.