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:
main:
labels:
app: audiobook-readarr-service
ports:
http:
port: 8787
@ -102,16 +105,6 @@ spec:
hostPath: /mnt/MainPool/Media
mountPath: /storage
serviceMonitor:
main:
enabled: true
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
resources:
requests:
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:
main:
labels:
app: ebook-readarr-service
ports:
http:
port: 8787
@ -102,16 +105,6 @@ spec:
hostPath: /mnt/MainPool/Media
mountPath: /storage
serviceMonitor:
main:
enabled: true
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
resources:
requests:
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

@ -2,4 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./audiobook-helm.yaml
- ./ebook-helm.yaml
- ./ebook-helm.yaml
- ./audiobook-monitor.yaml
- ./ebook-monitor.yaml