2024-09-04 23:43:31 +00:00
|
|
|
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:
|
2024-10-19 01:15:53 +00:00
|
|
|
- ip: 192.168.10.42
|
2024-09-04 23:43:31 +00:00
|
|
|
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
|