mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-27 12:33:58 +02:00
feat: kube scrape stuff
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/monitoring.coreos.com/scrapeconfig_v1alpha1.json
|
||||
apiVersion: monitoring.coreos.com/v1alpha1
|
||||
kind: ScrapeConfig
|
||||
metadata:
|
||||
name: &name node-exporter
|
||||
spec:
|
||||
staticConfigs:
|
||||
- targets:
|
||||
- pikvm.${SECRET_INTERNAL_DOMAIN}:9100
|
||||
- opnsense.${SECRET_INTERNAL_DOMAIN}:9273
|
||||
- storage.${SECRET_INTERNAL_DOMAIN}:9100
|
||||
metricsPath: /metrics
|
||||
relabelings:
|
||||
- action: replace
|
||||
targetLabel: job
|
||||
replacement: *name
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/monitoring.coreos.com/scrapeconfig_v1alpha1.json
|
||||
apiVersion: monitoring.coreos.com/v1alpha1
|
||||
kind: ScrapeConfig
|
||||
metadata:
|
||||
name: &name podman-exporter
|
||||
spec:
|
||||
staticConfigs:
|
||||
- targets: ["storage.${SECRET_INTERNAL_DOMAIN}:9882"]
|
||||
metricsPath: /metrics
|
||||
relabelings:
|
||||
- action: replace
|
||||
targetLabel: job
|
||||
replacement: *name
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/monitoring.coreos.com/scrapeconfig_v1alpha1.json
|
||||
apiVersion: monitoring.coreos.com/v1alpha1
|
||||
kind: ScrapeConfig
|
||||
metadata:
|
||||
name: &name pikvm
|
||||
spec:
|
||||
staticConfigs:
|
||||
- targets: ["pikvm.${SECRET_INTERNAL_DOMAIN}"]
|
||||
metricsPath: /api/export/prometheus/metrics
|
||||
relabelings:
|
||||
- action: replace
|
||||
targetLabel: job
|
||||
replacement: *name
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/monitoring.coreos.com/scrapeconfig_v1alpha1.json
|
||||
apiVersion: monitoring.coreos.com/v1alpha1
|
||||
kind: ScrapeConfig
|
||||
metadata:
|
||||
name: &name zrepl
|
||||
spec:
|
||||
staticConfigs:
|
||||
- targets: ["storage.${SECRET_INTERNAL_DOMAIN}:9811"]
|
||||
metricsPath: /metrics
|
||||
relabelings:
|
||||
- action: replace
|
||||
targetLabel: job
|
||||
replacement: *name
|
Reference in New Issue
Block a user