owntracks prom mon
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2020-06-29 21:36:27 +02:00
parent 862e0e51aa
commit f533937d9a
2 changed files with 44 additions and 0 deletions

View File

@ -92,6 +92,33 @@ spec:
limits:
memory: 128Mi
cpu: 300m
- name: metrics
env:
- name: OWNTRACKS_STORAGEDIR
value: /store
- name: OWNTRACKS_URL
value: http://localhost:8083
- name: SERVER_PORT
value: "8888"
image: docker.io/linusgroh/prometheus-owntracks-exporter:latest
imagePullPolicy: Always
ports:
- containerPort: 8888
protocol: TCP
name: metrics
volumeMounts:
- name: data
mountPath: /store
securityContext:
runAsUser: 9999
runAsGroup: 9999
resources:
requests:
memory: 32Mi
cpu: 100m
limits:
memory: 128Mi
cpu: 300m
volumes:
- name: data
persistentVolumeClaim:

View File

@ -0,0 +1,17 @@
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: owntracks
namespace: owntracks
spec:
podMetricsEndpoints:
- interval: 60s
path: /metrics
port: "8888"
namespaceSelector:
matchNames:
- owntracks
selector:
matchLabels:
app: recorder