ceph
This commit is contained in:
42
victoria-monitoring/scrape-ceph.yaml
Normal file
42
victoria-monitoring/scrape-ceph.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
#scrapes the ceph mgr (on proxmox) directly
|
||||
apiVersion: operator.victoriametrics.com/v1beta1
|
||||
kind: VMStaticScrape
|
||||
metadata:
|
||||
name: ceph
|
||||
namespace: vm
|
||||
spec:
|
||||
jobName: ceph
|
||||
targetEndpoints:
|
||||
- targets:
|
||||
- hyper1.undercloud.local:9283
|
||||
- hyper2.undercloud.local:9283
|
||||
- hyper3.undercloud.local:9283
|
||||
path: /metrics
|
||||
---
|
||||
#and this should scrape the ceph csi provisioner in kubernetes
|
||||
apiVersion: operator.victoriametrics.com/v1beta1
|
||||
kind: VMServiceScrape
|
||||
metadata:
|
||||
name: cephfs-csi-provisioner
|
||||
namespace: vm
|
||||
spec:
|
||||
jobLabel: app
|
||||
selector:
|
||||
matchLabels:
|
||||
app: csi-metrics
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- ceph
|
||||
endpoints:
|
||||
- port: http-metrics
|
||||
path: /metrics
|
||||
scheme: http
|
||||
interval: 30s
|
||||
scrapeTimeout: 10s
|
||||
relabelConfigs:
|
||||
- sourceLabels: [__meta_kubernetes_namespace]
|
||||
targetLabel: kubernetes_namespace
|
||||
- sourceLabels: [__meta_kubernetes_service_name]
|
||||
targetLabel: kubernetes_service
|
||||
- sourceLabels: [__meta_kubernetes_pod_name]
|
||||
targetLabel: pod
|
||||
Reference in New Issue
Block a user