forked from mischenkovn/velero-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
statsd-exporter.yaml
83 lines (83 loc) · 2.04 KB
/
statsd-exporter.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: statsd-exporter
namespace: velero
spec:
replicas: 1
template:
metadata:
labels:
app: statsd-exporter
spec:
containers:
- name: statsd-exporter
image: prom/statsd-exporter
imagePullPolicy: Always
ports:
- containerPort: 9102
- containerPort: 9125
args:
- --log.level=debug
- --statsd.mapping-config=/etc/statsd_mapping.conf
volumeMounts:
- name: statsd-mapping
mountPath: /etc/statsd_mapping.conf
subPath: statsd_mapping.conf
- name: velero-exporter
args:
- "10"
command:
- "/bin/statsd-get.sh"
env:
- name: STATSD_HOST
value: "statsd-exporter-svc"
- name: STATSD_PORT
value: "8125"
image: gcr.io/heptio-images/velero:v1.1.0
imagePullPolicy: IfNotPresent
name: velero-exporter
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- name: statsd-get
mountPath: /bin/statsd-get.sh
subPath: statsd-get.sh
- name: statsd-client
mountPath: /bin/statsd-client.sh
subPath: statsd-client.sh
serviceAccount: velero-server
serviceAccountName: velero-server
volumes:
- name: statsd-get
configMap:
name: statsd-get
defaultMode: 0777
- name: statsd-client
configMap:
name: statsd-client
defaultMode: 0777
- name: statsd-mapping
configMap:
name: statsd-mapping
---
apiVersion: v1
kind: Service
metadata:
name: statsd-exporter-svc
namespace: velero
labels:
app: statsd-exporter
spec:
ports:
- name: udp
port: 8125 #port to push metrics to
protocol: UDP
targetPort: 9125
- name: tcp
port: 9102 #port to fetch metrics from
protocol: TCP
targetPort: 9102
selector:
app: statsd-exporter