manually create servicemonitors for readarr

This commit is contained in:
SeanOMik 2023-05-11 12:38:15 -04:00
parent 6c937e345a
commit cf72a58656
5 changed files with 41 additions and 21 deletions

View File

@ -49,6 +49,9 @@ spec:
service: service:
main: main:
labels:
app: audiobook-readarr-service
ports: ports:
http: http:
port: 8787 port: 8787
@ -102,16 +105,6 @@ spec:
hostPath: /mnt/MainPool/Media hostPath: /mnt/MainPool/Media
mountPath: /storage mountPath: /storage
serviceMonitor:
main:
enabled: true
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
resources: resources:
requests: requests:
cpu: 1m cpu: 1m

View File

@ -0,0 +1,16 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: audiobook-readarr-exportarr
namespace: download
labels:
release: kube-prometheus-stack
spec:
selector:
matchLabels:
app: audiobook-readarr-service
endpoints:
- port: metrics
interval: 30s
scrapeTimeout: 20s
path: /metrics

View File

@ -49,6 +49,9 @@ spec:
service: service:
main: main:
labels:
app: ebook-readarr-service
ports: ports:
http: http:
port: 8787 port: 8787
@ -102,16 +105,6 @@ spec:
hostPath: /mnt/MainPool/Media hostPath: /mnt/MainPool/Media
mountPath: /storage mountPath: /storage
serviceMonitor:
main:
enabled: true
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
resources: resources:
requests: requests:
cpu: 1m cpu: 1m

View File

@ -0,0 +1,16 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: ebook-readarr-exportarr
namespace: download
labels:
release: kube-prometheus-stack
spec:
selector:
matchLabels:
app: ebook-readarr-service
endpoints:
- port: metrics
interval: 30s
scrapeTimeout: 20s
path: /metrics

View File

@ -3,3 +3,5 @@ kind: Kustomization
resources: resources:
- ./audiobook-helm.yaml - ./audiobook-helm.yaml
- ./ebook-helm.yaml - ./ebook-helm.yaml
- ./audiobook-monitor.yaml
- ./ebook-monitor.yaml