-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathprometheus.yaml
89 lines (88 loc) · 2.45 KB
/
prometheus.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
_: &prometheusHost "prometheus.example.com"
_: &alertmanagerHost "alertmanager.example.com"
_: &grafanaHost "grafana.example.com"
kubePrometheusStack:
enabled: true
values:
alertmanager:
enabled: true
ingress:
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
enabled: true
pathType: Prefix
hosts:
- *alertmanagerHost
tls:
- hosts:
- *alertmanagerHost
secretName: infra-monitoring-alertmanager-cert
commonLabels:
k8s.adfinis.com/prometheus: kube-prometheus
grafana:
enabled: true
grafana.ini:
auth.ldap:
allow_sign_up: true
config_file: /etc/grafana/ldap.toml
enabled: true
ingress:
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
enabled: true
pathType: Prefix
hosts:
- *grafanaHost
tls:
- hosts:
- *grafanaHost
secretName: infra-monitoring-grafana-cert
ldap:
config: |-
verbose_logging = true
[[servers]]
host = "ldap.example.com"
port = 389
use_ssl = false
start_tls = false
ssl_skip_verify = false
bind_dn = "CN=srvaccount,OU=ServiceAccount,OU=Administration,DC=example,DC=com"
bind_password = 'secretpw'
search_filter = "(sAMAccountName=%s)"
search_base_dns = ["DC=example,DC=com"]
[servers.attributes]
name = "cn"
surname = "cn"
username = "sAMAccountName"
member_of = "memberOf"
email = "mail"
enabled: true
prometheus:
enabled: true
ingress:
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
enabled: true
pathType: Prefix
hosts:
- *prometheusHost
tls:
- hosts:
- *prometheusHost
secretName: infra-monitoring-prom-cert
prometheusSpec:
podMonitorNamespaceSelector:
any: true
podMonitorSelector:
matchLabels:
k8s.adfinis.com/prometheus: kube-prometheus
ruleNamespaceSelector:
any: true
serviceMonitorNamespaceSelector:
any: true
serviceMonitorSelector:
matchLabels:
k8s.adfinis.com/prometheus: kube-prometheus