Compare commits
2 commits
46702a1f86
...
e788755a49
Author | SHA1 | Date | |
---|---|---|---|
e788755a49 | |||
17243198ac |
3 changed files with 47 additions and 2 deletions
|
@ -191,7 +191,7 @@ spec:
|
|||
volsync:
|
||||
# removate: depName="VolSync Dashboard"
|
||||
gnetId: 21356
|
||||
revision: 1
|
||||
revision: 3
|
||||
datasource:
|
||||
- { name: DS_PROMETHEUS, value: Prometheus }
|
||||
- { name: VAR_REPLICATIONDESTNAME, value: .*-dst }
|
||||
|
|
|
@ -48,7 +48,7 @@ spec:
|
|||
custom: true
|
||||
spec:
|
||||
httpGet:
|
||||
port: 9633
|
||||
port: &port 9633
|
||||
path: /
|
||||
readiness: *probes
|
||||
smartctl-exporter-vms:
|
||||
|
@ -77,6 +77,17 @@ spec:
|
|||
probes:
|
||||
liveness: *probes
|
||||
readiness: *probes
|
||||
service:
|
||||
smartctl-exporter:
|
||||
controller: smartctl-exporter
|
||||
ports:
|
||||
exporter:
|
||||
port: *port
|
||||
smartctl-exporter-vms:
|
||||
controller: smartctl-exporter-vms
|
||||
ports:
|
||||
exporter:
|
||||
port: *port
|
||||
persistence:
|
||||
dev:
|
||||
type: hostPath
|
||||
|
@ -85,3 +96,24 @@ spec:
|
|||
globalMounts:
|
||||
- path: /host/dev
|
||||
readOnly: true
|
||||
serviceMonitor:
|
||||
smartctl-exporter:
|
||||
serviceName: smartctl-exporter
|
||||
endpoints:
|
||||
- port: exporter
|
||||
scheme: http
|
||||
path: /metrics
|
||||
interval: 1m
|
||||
scrapeTimeout: 10s
|
||||
smartctl-exporter-vms:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/instance: smartctl-exporter
|
||||
app.kubernetes.io/name: smartctl-exporter
|
||||
app.kubernetes.io/service: smartctl-exporter-smartctl-exporter-vms
|
||||
endpoints:
|
||||
- port: exporter
|
||||
scheme: http
|
||||
path: /metrics
|
||||
interval: 1m
|
||||
scrapeTimeout: 10s
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/monitoring.coreos.com/podmonitor_v1.json
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: smartctl-exporter
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- observability
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: smartctl-exporter
|
Loading…
Reference in a new issue