-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgrafana.yaml
236 lines (236 loc) · 8.38 KB
/
grafana.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: grafana
namespace: monitoring
spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://grafana.github.io/helm-charts
chart: grafana
version: 8.8.5
sourceRef:
kind: HelmRepository
name: grafana-charts
namespace: flux-system
interval: 5m
values:
adminPassword: ${SECRET_GRAFANA_ADMIN_PASSWORD}
rbac:
pspEnabled: false
deploymentStrategy:
type: Recreate
podAnnotations:
# configmap.reloader.stakater.com/reload: "grafana"
persistence:
enabled: true
storageClassName: rook-ceph-block
size: 10Gi
accessModes:
- ReadWriteOnce
env:
GF_EXPLORE_ENABLED: true
GF_DISABLE_SANITIZE_HTML: true
GF_PANELS_DISABLE_SANITIZE_HTML: true
GF_LOG_FILTERS: rendering:debug
TZ: America/Chicago
ldap:
enabled: true
config: |-
[[servers]]
host = "openldap.kube-system.svc"
port = 1389
use_ssl = false
start_tls = false
ssl_skip_verify = true
bind_dn = "cn=${SECRET_LDAP_ADMIN_USERNAME},${SECRET_LDAP_BASE_DN}"
bind_password = "${SECRET_LDAP_ADMIN_PASSWORD}"
search_filter = "(cn=%s)"
search_base_dns = ["ou=users,${SECRET_LDAP_BASE_DN}"]
[servers.attributes]
name = "givenName"
surname = "sn"
username = "uid"
member_of = "memberOf"
email = "mail"
ingress:
enabled: true
ingressClassName: nginx-external
hosts: ["grafana.${SECRET_DOMAIN}"]
tls:
- hosts:
- "grafana.${SECRET_DOMAIN}"
secretName: grafana-cert
plugins:
- natel-discrete-panel
- pr0ps-trackmap-panel
- grafana-piechart-panel
- grafana-clock-panel
- vonage-status-panel
- grafana-worldmap-panel
serviceMonitor:
enabled: true
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: false
allowUiUpdates: true
options:
path: /var/lib/grafana/dashboards/default
dashboards:
default:
# Ref: https://grafana.com/grafana/dashboards/11074-node-exporter-for-prometheus-dashboard-en-v20201010/
1-node-exporter:
url: https://grafana.com/api/dashboards/11074/revisions/9/download
datasource: Prometheus
cert-manager:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/cert-manager/dashboards/cert-manager.json
datasource: Prometheus
cloudnative-pg:
url: https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/main/docs/src/samples/monitoring/grafana-dashboard.json
datasource: Prometheus
# Ref: https://grafana.com/grafana/dashboards/1860-node-exporter-full/
node-exporter-full:
gnetId: 1860
revision: 36
datasource: Prometheus
prometheus-exporter-summary:
url: https://raw.githubusercontent.com/billimek/k8s-gitops/master/monitoring/grafana/dashboards/prometheus_exporter_summary.json
datasource: Prometheus
ceph-cluster:
# renovate: dashboardName="Ceph Cluster"
gnetId: 2842
revision: 18
datasource: Prometheus
ceph-osd:
# renovate: dashboardName="Ceph - OSD (Single)"
gnetId: 5336
revision: 9
datasource: Prometheus
ceph-pools:
# renovate: dashboardName="Ceph - Pools"
gnetId: 5342
revision: 9
datasource: Prometheus
flux-cluster:
url: https://raw.githubusercontent.com/fluxcd/flux2-monitoring-example/main/monitoring/configs/dashboards/cluster.json
datasource: Prometheus
flux-control-plane:
url: https://raw.githubusercontent.com/fluxcd/flux2-monitoring-example/main/monitoring/configs/dashboards/control-plane.json
datasource: Prometheus
flux-logs:
url: https://raw.githubusercontent.com/fluxcd/flux2-monitoring-example/main/monitoring/configs/dashboards/logs.json
datasource: Prometheus
k8s-system-api-server:
# renovate: dashboardName="Kubernetes / System / API Server"
gnetId: 15761
revision: 18
datasource: Prometheus
k8s-views-global:
# renovate: dashboardName="Kubernetes / Views / Global"
gnetId: 15757
revision: 42
datasource: Prometheus
k8s-views-nodes:
# renovate: dashboardName="Kubernetes / Views / Nodes"
gnetId: 15759
revision: 32
datasource: Prometheus
k8s-views-namespaces:
# renovate: dashboardName="Kubernetes / Views / Namespaces"
gnetId: 15758
revision: 41
datasource: Prometheus
k8s-views-pods:
# renovate: dashboardName="Kubernetes / Views / Pods"
gnetId: 15760
revision: 34
datasource: Prometheus
k8s-volumes:
# renovate: dashboardName="K8s / Storage / Volumes / Cluster"
gnetId: 11454
revision: 14
datasource: Prometheus
nginx:
url: https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/grafana/dashboards/nginx.json
datasource: Prometheus
nginx-request-handling-performance:
url: https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/grafana/dashboards/request-handling-performance.json
datasource: Prometheus
thanos-bucket-replicate:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/bucket-replicate.json
datasource: Prometheus
thanos-compact:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/compact.json
datasource: Prometheus
thanos-overview:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/overview.json
datasource: Prometheus
thanos-query:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/query.json
datasource: Prometheus
thanos-query-frontend:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/query-frontend.json
datasource: Prometheus
thanos-receieve:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/receive.json
datasource: Prometheus
thanos-rule:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/rule.json
datasource: Prometheus
thanos-sidecar:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/sidecar.json
datasource: Prometheus
thanos-store:
url: https://raw.githubusercontent.com/monitoring-mixins/website/master/assets/thanos/dashboards/store.json
datasource: Prometheus
volsync:
# removate: dashboardName="VolSync Dashboard"
gnetId: 21356
revision: 2
datasource:
- { name: DS_PROMETHEUS, value: Prometheus }
sidecar:
datasources:
enabled: true
searchNamespace: ALL
# defaultDatasourceEnabled: false
dashboards:
enabled: true
searchNamespace: ALL
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://thanos-query.monitoring.svc.cluster.local:9090
isDefault: true
grafana.ini:
server:
root_url: "https://grafana.k.${SECRET_DOMAIN}"
auth.ldap:
enabled: true
allow_sign_up: true
config_file: /etc/grafana/ldap.toml
paths:
data: /var/lib/grafana/data
logs: /var/log/grafana
plugins: /var/lib/grafana/plugins
provisioning: /etc/grafana/provisioning
analytics:
check_for_updates: false
log:
mode: console
grafana_net:
url: https://grafana.net
auth.basic:
disable_login_form: false