补齐 OpenBao 内部健康与本地快照监控
yaml / yaml (pull_request) Successful in 49s
ansible / collection-test (pull_request) Successful in 2m19s
ansible / lint (pull_request) Successful in 3m45s

This commit is contained in:
2026-09-25 20:56:09 +00:00
parent 834f654941
commit 0309d03428
14 changed files with 525 additions and 44 deletions
@@ -61,3 +61,48 @@ spec:
relabelings:
- targetLabel: job
replacement: openbao
---
apiVersion: v1
kind: Service
metadata:
name: openbao-node-metrics
namespace: monitoring
labels:
app.kubernetes.io/name: openbao-node-metrics
spec:
ports:
- name: http
port: 9100
targetPort: 9100
---
apiVersion: v1
kind: Endpoints
metadata:
name: openbao-node-metrics
namespace: monitoring
subsets:
- addresses:
- ip: 192.168.10.8
ports:
- name: http
port: 9100
protocol: TCP
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: openbao-node
namespace: monitoring
spec:
selector:
matchLabels:
app.kubernetes.io/name: openbao-node-metrics
endpoints:
- port: http
interval: 30s
scrapeTimeout: 10s
relabelings:
- targetLabel: job
replacement: node-exporter
- targetLabel: node
replacement: bao1