-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
grafana.yml
70 lines (63 loc) · 1.72 KB
/
grafana.yml
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
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus-server.prometheus.svc.cluster.local
access: proxy
isDefault: true
%{ if grafana_loki_enabled }
- name: Loki
type: loki
url: http://loki-gateway.loki.svc.cluster.local
access: proxy
isDefault: false
%{ endif }
# Additional datasources from Terraform
%{ for ds in datasources }
- name: "${ds.name}"
type: "${ds.type}"
url: "${ds.url}"
access: "${ds.access}"
isDefault: ${ds.isDefault}
%{ endfor }
sidecar:
dashboards:
enabled: true
defaultFolderName: "General"
label: grafana_dashboard
labelValue: "1"
folderAnnotation: grafana_folder
searchNamespace: ALL
provider:
foldersFromFilesStructure: true
grafana.ini:
auth.google:
enabled: true
auto_login: false
client_id: ${GOOGLE_CLIENT_ID}
client_secret: ${GOOGLE_CLIENT_SECRET}
scopes: https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
auth_url: https://accounts.google.com/o/oauth2/auth
token_url: https://accounts.google.com/o/oauth2/token
allow_sign_up: true
%{ for host in INGRESS_HOSTS }
allowed_domains: ${host}
hosted_domain: ${host}
%{ endfor }
server:
%{ for host in INGRESS_HOSTS }
domain: ${host}
root_url: "%(protocol)s://%(domain)s/grafana"
serve_from_sub_path: true
%{ endfor }
ingress:
ingressClassName: nginx
enabled: ${INGRESS_ENABLED}
hosts:
%{ for host in INGRESS_HOSTS }
- ${host}
%{ endfor }
path: "/grafana"
assertNoLeakedSecrets: false