-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitoring.yml
More file actions
131 lines (130 loc) · 3.61 KB
/
monitoring.yml
File metadata and controls
131 lines (130 loc) · 3.61 KB
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
## Copyright 2023 Red Hat Inc.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-4.1.0
apiVersion: v1
kind: Pod
metadata:
labels:
app: telemetry
name: monitoring
spec:
containers:
- name: jaeger
image: docker.io/jaegertracing/all-in-one:latest
restartPolicy: Always
ports:
- containerPort: 6831
hostPort: 6831
protocol: UDP
- containerPort: 5778
hostPort: 5778
- containerPort: 14268
hostPort: 14268
- containerPort: 16686
hostPort: 16686
env:
- name: SPAN_STORAGE_TYPE
value: badger
- name: BADGER_EPHEMERAL
value: 'false'
- name: BADGER_DIRECTORY_VALUE
value: /badger/data
- name: BADGER_DIRECTORY_KEY
value: /badger/key
resources:
limits:
cpu: 2
memory: 4Gi
volumeMounts:
- mountPath: /badger
name: jaeger-data
- name: prometheus
image: docker.io/prom/prometheus:latest
restartPolicy: Always
args:
- '--log.level=debug'
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- containerPort: 9090
hostPort: 9090
volumeMounts:
- mountPath: /prometheus
name: prometheus-data
- mountPath: /etc/prometheus/prometheus.yml
name: prometheus-config
resources:
limits:
cpu: 2
memory: 4Gi
- name: alertmanager
image: quay.io/prometheus/alertmanager:latest
restartPolicy: Always
resources:
limits:
cpu: 2
memory: 2Gi
args:
- '--config.file=/etc/alertmanager/alertmanager.yml'
ports:
- containerPort: 9093
hostPort: 9093
volumeMounts:
- mountPath: /etc/alertmanager/alertmanager.yml
name: alertmanager-config
- name: grafana
image: docker.io/grafana/grafana:latest
restartPolicy: Always
# env:
# - name: GF_AUTH_ANONYMOUS_ENABLED
# value: 'true'
# - name: GF_AUTH_ORG_ROLE
# value: Admin
# - name: GF_AUTH_DISABLE_LOGIN_FORM
# value: 'true'
resources:
limits:
cpu: 2
memory: 4Gi
ports:
- containerPort: 3000
hostPort: 3000
volumeMounts:
- mountPath: /var/lib/grafana
name: grafana-data
- mountPath: /etc/grafana/provisioning
name: grafana-provisioning
volumes:
- name: prometheus-data
persistentVolumeClaim:
claimName: prometheus-data
- name: prometheus-config
hostPath:
path: ${PWD}/prometheus.yml
type: File
- name: grafana-data
persistentVolumeClaim:
claimName: grafana-data
- name: grafana-provisioning
hostPath:
path: ${PWD}/grafana
- name: jaeger-data
persistentVolumeClaim:
claimName: jaeger-data
- name: alertmanager-config
hostPath:
path: ${PWD}/alertmanager.yml
type: File