manually create servicemonitors for readarr
This commit is contained in:
parent
6c937e345a
commit
cf72a58656
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue