adding datasource, provider, and dashboard for ceph.

This commit is contained in:
Joseph Hanson 2023-10-20 15:46:05 -05:00
parent 94069aeb6d
commit b8d1c0e600

View file

@ -32,7 +32,7 @@ spec:
annotations:
configmap.reloader.stakater.com/reload: grafana
secret.reloader.stakater.com/reload: grafana-secrets
replicas: 1
replicas: 2
envFromSecret: grafana-secrets
grafana.ini:
@ -79,6 +79,58 @@ spec:
cookie_samesite: grafana
server:
root_url: https://grafana.valinor.social
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: ceph
orgId: 1
folder: Ceph
type: file
disableDeletion: false
editable: true
options:
path: /var/lib/grafana/dashboards/ceph
datasources:
datasources.yaml:
apiVersion: 1
deleteDatasources:
- { name: Alertmanager, orgId: 1 }
- { name: Loki, orgId: 1 }
- { name: Prometheus, orgId: 1 }
datasources:
- name: Prometheus
type: prometheus
uid: prometheus
access: proxy
url: http://thanos-query-frontend.monitoring.svc.cluster.local:9090
jsonData:
prometheusType: Thanos
isDefault: true
- name: Alertmanager
type: alertmanager
uid: alertmanager
access: proxy
url: http://alertmanager-operated.monitoring.svc.cluster.local:9093
jsonData:
implementation: prometheus
dashboards:
ceph:
ceph-cluster:
# renovate: depName="Ceph Cluster"
gnetId: 2842
revision: 17
datasource: Prometheus
ceph-osd:
# renovate: depName="Ceph - OSD (Single)"
gnetId: 5336
revision: 9
datasource: Prometheus
ceph-pools:
# renovate: depName="Ceph - Pools"
gnetId: 5342
revision: 9
datasource: Prometheus
ingress:
enabled: true
annotations:
@ -89,6 +141,20 @@ spec:
tls:
- hosts:
- *host
sidecar:
dashboards:
enabled: true
searchNamespace: ALL
labelValue: ""
label: grafana_dashboard
folderAnnotation: grafana_folder
provider:
disableDelete: true
foldersFromFilesStructure: true
datasources:
enabled: true
searchNamespace: ALL
labelValue: ""
plugins:
- natel-discrete-panel
- pr0ps-trackmap-panel
@ -96,3 +162,14 @@ spec:
- vonage-status-panel
- grafana-worldmap-panel
- grafana-clock-panel
persistence:
enabled: false
testFramework:
enabled: false
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: grafana