Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions workloads/grafana/datasource.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# Prometheus datasource for the main Grafana instance, sourced from
# kube-prometheus-stack's in-cluster Prometheus. Selected onto the main
# Grafana via the matching `dashboards: grafana` label.
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: grafana-prometheus
namespace: grafana
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
instanceSelector:
matchLabels:
dashboards: "grafana"
datasource:
name: Prometheus
type: prometheus
access: proxy
isDefault: true
url: http://kube-prometheus-stack-prometheus.monitoring.svc:9090
jsonData:
timeInterval: 30s
1 change: 1 addition & 0 deletions workloads/grafana/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- grafana.yaml
- datasource.yaml
- status-grafana.yaml
- status-monitoring.yaml
- status-datasource.yaml
Expand Down
Loading