forked from digitalocean/Kubernetes-Starter-Kit-Developers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prom-stack-values-v35.5.1.yaml
172 lines (158 loc) · 4.78 KB
/
prom-stack-values-v35.5.1.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
##
## Starter Kit configuration for Prometheus stack
##
## Create default rules for monitoring the cluster
#
# Disable `etcd` and `kubeScheduler` rules (managed by DOKS, so metrics are not accesible)
defaultRules:
create: true
rules:
etcd: false
kubeScheduler: false
## Component scraping kube scheduler
##
# Disabled because it's being managed by DOKS, so it's not accessible
kubeScheduler:
enabled: false
## Component scraping etcd
##
# Disabled because it's being managed by DOKS, so it's not accessible
kubeEtcd:
enabled: false
alertmanager:
## Deploy alertmanager
##
enabled: true
# config:
# global:
# resolve_timeout: 5m
# slack_api_url: "<YOUR_SLACK_APP_INCOMING_WEBHOOK_URL_HERE>"
# route:
# receiver: "slack-notifications"
# repeat_interval: 12h
# routes:
# - receiver: "slack-notifications"
# # matchers:
# # - alertname="EmojivotoInstanceDown"
# # continue: false
# receivers:
# - name: "slack-notifications"
# slack_configs:
# - channel: "#<YOUR_SLACK_CHANNEL_NAME_HERE>"
# send_resolved: true
# title: "{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}"
# text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
# additionalPrometheusRulesMap:
# rule-name:
# groups:
# - name: emojivoto-instance-down
# rules:
# - alert: EmojivotoInstanceDown
# expr: sum(kube_pod_owner{namespace="emojivoto"}) by (namespace) < 4
# for: 1m
# labels:
# severity: 'critical'
# alert_type: 'infrastructure'
# annotations:
# description: ' The Number of pods from the namespace {{ $labels.namespace }} is lower than the expected 4. '
# summary: 'Pod in {{ $labels.namespace }} namespace down'
## Using default values from https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml
##
grafana:
enabled: true
adminPassword: prom-operator # Please change the default password in production !!!
# affinity:
# nodeAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 1
# preference:
# matchExpressions:
# - key: prefered
# operator: In
# values:
# - observability
# # Starter Kit setup for DigitalOcean Block Storage
# persistence:
# enabled: true
# storageClassName: do-block-storage
# accessModes: ["ReadWriteOnce"]
# size: 5Gi
## Manages Prometheus and Alertmanager components
##
prometheusOperator:
enabled: true
## Deploy a Prometheus instance
##
prometheus:
enabled: true
## Starter Kit components service monitors
#
# additionalServiceMonitors:
# # Uncomment the following section to enable emojivoto service monitoring
# - name: "emojivoto-monitor"
# selector:
# matchExpressions:
# - key: app
# operator: In
# values:
# - emoji-svc
# - voting-svc
# namespaceSelector:
# matchNames:
# - emojivoto
# endpoints:
# - port: "prom"
# # Uncomment the following section to enable ingress-nginx service monitoring
# - name: "ingress-nginx-monitor"
# selector:
# matchLabels:
# app.kubernetes.io/name: ingress-nginx
# namespaceSelector:
# matchNames:
# - ingress-nginx
# endpoints:
# - port: "metrics"
# # Uncomment the following section to enable Loki service monitoring
# - name: "loki-monitor"
# selector:
# matchLabels:
# app: loki
# release: loki
# namespaceSelector:
# matchNames:
# - loki-stack
# endpoints:
# - port: "http-metrics"
# # Uncomment the following section to enable Promtail service monitoring
# - name: "promtail-monitor"
# selector:
# matchLabels:
# app: promtail
# release: loki
# namespaceSelector:
# matchNames:
# - loki-stack
# endpoints:
# - port: "http-metrics"
## Prometheus StorageSpec for persistent data
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/user-guides/storage.md
##
# prometheusSpec:
# affinity:
# nodeAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 1
# preference:
# matchExpressions:
# - key: prefered
# operator: In
# values:
# - observability
# storageSpec:
# volumeClaimTemplate:
# spec:
# storageClassName: do-block-storage
# accessModes: ["ReadWriteOnce"]
# resources:
# requests:
# storage: 5Gi