forked from bakins/minikube-prometheus-demo
-
Notifications
You must be signed in to change notification settings - Fork 9
/
prometheus.yml
61 lines (61 loc) · 1.44 KB
/
prometheus.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
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
labels:
app: prometheus
name: prometheus
namespace: monitoring
spec:
serviceName: "prometheus"
replicas: 1
selector:
matchLabels:
app: prometheus
template:
metadata:
creationTimestamp: null
labels:
app: prometheus
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
spec:
restartPolicy: Always
securityContext: {}
terminationGracePeriodSeconds: 30
containers:
- name: prometheus
image: prom/prometheus:v1.7.0
args:
- -config.file=/etc/monitoring/prometheus.yml
- -storage.local.path=/prometheus
- -storage.local.retention=24h
- -storage.local.target-heap-size=2147483648
- -alertmanager.url=http://alertmanager
ports:
- containerPort: 9090
protocol: TCP
resources:
limits:
cpu: 500m
memory: 3000Mi
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: data
mountPath: /prometheus
- name: monitoring-config
mountPath: /etc/monitoring
volumes:
- name: monitoring-config
configMap:
name: monitoring-config
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 200Gi