forked from codefresh-io/runtime-cluster-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kube-prometheus.yaml.erb
104 lines (92 loc) · 2.4 KB
/
kube-prometheus.yaml.erb
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
alertmanager:
config:
<%= template 'alertmanager.yaml.erb', 4, '_alertmanager', binding %>
templateFiles:
alerts.tmpl: |
<%= template 'alerts.tmpl.erb', 6, '_alerts', binding %>
alertmanagerSpec:
routePrefix: /alertmanager/
storage:
volumeClaimTemplate:
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 2Gi
<%= template 'affinity.yaml.erb', 4, '_affinity', binding %>
grafana:
grafana.ini:
server:
root_url: '%(protocol)s://%(domain)s/grafana/'
serve_from_sub_path: 'true'
auth:
disable_login_form: 'true'
disable_signout_menu: 'true'
auth.basic:
enabled: 'false'
auth.anonymous:
enabled: 'true'
org_role: Admin
persistence:
enabled: true
size: 10Gi
dashboardProviders:
dashboardproviders.yaml:
apiVersion: 1
providers:
- name: 'codefresh'
orgId: 1
folder: Codefresh
type: file
disableDeletion: true
editable: false
options:
path: /var/lib/grafana/dashboards/codefresh
dashboards:
codefresh:
<%= template 'dashboards.yaml.erb', 6, '_dashboards', binding %>
<%= template 'affinity.yaml.erb', 2, '_affinity', binding %>
kube-state-metrics:
<%= template 'affinity.yaml.erb', 2, '_affinity', binding %>
kubeControllerManager:
enabled: false
coreDns:
enabled: false
kubeDns:
enabled: true
kubeEtcd:
enabled: false
kubeProxy:
enabled: false
kubeScheduler:
enabled: false
prometheusOperator:
logLevel: error
<%= template 'affinity.yaml.erb', 2, '_affinity', binding %>
prometheus:
prometheusSpec:
externalUrl: https://<%= ENV['cluster'] %>/prometheus/
routePrefix: /prometheus/
scrapeInterval: 10s
retention: 20d
additionalScrapeConfigs:
<%= template 'scrape.yaml.erb', 6, '_scrape', binding %>
storageSpec:
volumeClaimTemplate:
spec:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 200Gi
<%= template 'affinity.yaml.erb', 4, '_affinity', binding %>
defaultRules:
rules:
time: false
kubernetesApps: false
kubernetesResources: false
kubernetesSystem: false
additionalPrometheusRules:
- name: cf-rules
groups:
<%= template 'alerts.yaml.erb', 6, '_rules', binding %>
<%= file 'dind-rules.yaml', 6 %>