Skip to content

Commit

Permalink
fix up dashboard and datasource CRs
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Sauer <[email protected]>
  • Loading branch information
etsauer committed Sep 19, 2024
1 parent 85f9359 commit 41b2eb7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
labels:
app: grafana
spec:
instanceSelector:
matchLabels:
grafana: grafana-oauth
json: >-
{
"annotations": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
labels:
app: grafana
spec:
instanceSelector:
matchLabels:
grafana: grafana-oauth
json: >-
{
"annotations": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@ metadata:
name: prometheus-grafana-datasource
spec:
name: prometheus.yaml
datasources:
- access: "proxy"
basicAuth: true
basicAuthPassword: {{ .Values.openshift_prometheus_basic_auth_pass }}
basicAuthUser: "internal"
editable: false
jsonData:
tlsSkipVerify: true
name: "prometheus"
orgId: 1
type: "prometheus"
{{- if .Values.bucket_access_point }}
url: "https://thanos-pelorus.{{ .Release.Namespace }}.svc:9092"
{{- else }}
url: "https://prometheus-pelorus.{{ .Release.Namespace }}.svc:9091"
{{- end }}
version: 1
datasource:
access: "proxy"
basicAuth: true
basicAuthPassword: {{ .Values.openshift_prometheus_basic_auth_pass }}
basicAuthUser: "internal"
editable: false
jsonData:
tlsSkipVerify: true
name: "prometheus"
orgId: 1
type: "prometheus"
{{- if .Values.bucket_access_point }}
url: "https://thanos-pelorus.{{ .Release.Namespace }}.svc:9092"
{{- else }}
url: "https://prometheus-pelorus.{{ .Release.Namespace }}.svc:9091"
{{- end }}
version: 1
2 changes: 2 additions & 0 deletions pelorus-operator/helm-charts/pelorus/templates/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
labels:
grafana: grafana-oauth
name: grafana-oauth
spec:
config:
Expand Down

0 comments on commit 41b2eb7

Please sign in to comment.