Skip to content

Commit

Permalink
grafana: convert the datasources to the new CRD version.
Browse files Browse the repository at this point in the history
Signed-off-by: Hiram Chirino <[email protected]>
  • Loading branch information
chirino committed Mar 7, 2024
1 parent a64a20d commit 766f2c0
Showing 1 changed file with 52 additions and 30 deletions.
82 changes: 52 additions & 30 deletions deploy/nexodus-monitoring/base/grafana/datasource.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,56 @@
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: nexodus-grafanadatasource
name: prometheus-ds
spec:
name: middleware.yaml
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-operated:9090
isDefault: true
version: 1
editable: false
jsonData:
tlsSkipVerify: true
timeInterval: "5s"
- name: Tempo
type: tempo
access: proxy
url: http://tempo:3200
isDefault: false
version: 1
editable: false
jsonData:
tracesToLogs:
datasourceUid: 'Loki'
- name: Loki
type: loki
access: proxy
url: http://loki:3100/
isDefault: false
version: 1
editable: false
instanceSelector:
matchLabels:
dashboards: "nexodus-grafana"
datasource:
name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-operated:9090
isDefault: true
version: 1
editable: false
jsonData:
tlsSkipVerify: true
timeInterval: "5s"
---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: tempo-ds
spec:
instanceSelector:
matchLabels:
dashboards: "nexodus-grafana"
datasource:
name: Tempo
type: tempo
access: proxy
url: http://tempo:3200
isDefault: false
version: 1
editable: false
jsonData:
tracesToLogs:
datasourceUid: 'Loki'
---
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: loki-ds
spec:
instanceSelector:
matchLabels:
dashboards: "nexodus-grafana"
datasource:
name: Loki
type: loki
access: proxy
url: http://loki:3100/
isDefault: false
version: 1
editable: false

0 comments on commit 766f2c0

Please sign in to comment.