-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
sonarr-exporter.yaml
103 lines (103 loc) · 2.58 KB
/
sonarr-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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
apiVersion: v1
kind: Service
metadata:
name: sonarr-exporter
namespace: monitoring
labels:
app.kubernetes.io/name: sonarr-exporter
app.kubernetes.io/instance: sonarr-exporter
spec:
clusterIP: None
selector:
app.kubernetes.io/name: sonarr-exporter
app.kubernetes.io/instance: sonarr-exporter
ports:
- name: monitoring
port: 9707
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: sonarr-exporter
namespace: monitoring
labels:
app.kubernetes.io/name: sonarr-exporter
app.kubernetes.io/instance: sonarr-exporter
spec:
selector:
matchLabels:
app.kubernetes.io/name: sonarr-exporter
app.kubernetes.io/instance: sonarr-exporter
endpoints:
- port: monitoring
interval: 4m
scrapeTimeout: 90s
path: /metrics
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: sonarr-exporter
namespace: monitoring
labels:
app.kubernetes.io/name: sonarr-exporter
app.kubernetes.io/instance: sonarr-exporter
annotations:
fluxcd.io/ignore: "false"
fluxcd.io/automated: "true"
fluxcd.io/tag.sonarr-exporter: semver:~v0.1
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/name: sonarr-exporter
app.kubernetes.io/instance: sonarr-exporter
template:
metadata:
labels:
app.kubernetes.io/name: sonarr-exporter
app.kubernetes.io/instance: sonarr-exporter
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "monitoring"
spec:
containers:
- name: sonarr-exporter
image: ghcr.io/onedr0p/exportarr:v1.5.3
imagePullPolicy: IfNotPresent
args:
- sonarr
env:
- name: PORT
value: "9707"
- name: URL
value: "http://sonarr.default.svc.cluster.local:7878"
- name: APIKEY
valueFrom:
secretKeyRef:
name: sonarr-exporter
key: api-key
ports:
- name: monitoring
containerPort: 9707
livenessProbe:
httpGet:
path: /healthz
port: monitoring
failureThreshold: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /healthz
port: monitoring
failureThreshold: 5
periodSeconds: 10
resources:
requests:
cpu: 100m
memory: 64Mi
limits:
cpu: 500m
memory: 256Mi