This commit is contained in:
parent
862e0e51aa
commit
f533937d9a
|
@ -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:
|
||||
|
|
17
owntracks/recorder/pod-monitor.yaml
Normal file
17
owntracks/recorder/pod-monitor.yaml
Normal 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
|
Reference in a new issue