feat: collect node-exporter metrics from essential box

This commit is contained in:
SeanOMik 2024-09-04 19:43:31 -04:00
parent 3c45624a9b
commit af31ee53bc
Signed by: SeanOMik
GPG Key ID: FEC9E2FC15235964
2 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,47 @@
kind: Service
apiVersion: v1
metadata:
name: essential-node-exporter
namespace: monitoring
labels:
app: essential-node-exporter
spec:
type: ClusterIP
ports:
- name: metrics
port: 9100
targetPort: 9100
---
kind: Endpoints
apiVersion: v1
metadata:
name: essential-node-exporter
namespace: monitoring
subsets:
- addresses:
- ip: 192.168.10.41
ports:
- name: metrics
port: 9100
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: essential-node-exporter
namespace: monitoring
labels:
release: kube-prometheus-stack
spec:
selector:
matchLabels:
app: essential-node-exporter
endpoints:
- port: metrics
interval: 60s
scrapeTimeout: 15s
path: /metrics
relabelings:
- targetLabel: job
replacement: node-exporter
- targetLabel: instance
replacement: essential

View File

@ -3,3 +3,4 @@ kind: Kustomization
resources: resources:
- ./air-quality.yaml - ./air-quality.yaml
- ./air-quality-dashboard.yaml - ./air-quality-dashboard.yaml
- ./essential-node-exporter.yaml