update grafana

This commit is contained in:
2025-03-30 00:18:26 +01:00
parent 6e4fb0a210
commit 12b9566634
2 changed files with 21 additions and 8 deletions

View File

@@ -51,7 +51,13 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /var/lib/grafana - mountPath: /var/lib/grafana
name: grafana-pv name: grafana-pv
- name: grafana-datasources
mountPath: /etc/grafana/provisioning/datasources/datasources.yaml
subPath: datasources.yaml
volumes: volumes:
- name: grafana-pv - name: grafana-pv
persistentVolumeClaim: persistentVolumeClaim:
claimName: grafana-pvc claimName: grafana-pvc
- name: grafana-datasources
configMap:
name: grafana-datasources

View File

@@ -1,8 +1,15 @@
apiVersion: 1 apiVersion: v1
datasources: kind: ConfigMap
- name: Prometheus metadata:
type: prometheus name: grafana-datasources
access: proxy namespace: grafana
url: http://prometheus-k8s.monitoring:9090 data:
isDefault: true datasources.yaml: |
editable: false apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus-k8s.monitoring:9090
isDefault: true
editable: false