openebs-archive / monitor-pv

custom stats collector for OpenEBS persistent volumes
Apache License 2.0
4 stars 5 forks source link

(initial_commit) monitor_pv: Introduces a textfile collector based pv stats monitor for OpenEBS #1

Closed ksatchit closed 4 years ago

ksatchit commented 4 years ago

Signed-off-by: ksatchit karthik.s@openebs.io

What this PR does / why we need it:

This PR introduces the alpha version of a persistent volume capacity monitor container for Kubernetes. It is typically expected to be deployed as a sidecar to the node-exporter on the cluster. The container uses the textfile collector approach to gather the PV metrics, while allowing node-exporter to expose them. The flow/working & usage details of the collector is provided below:

pv_capacity_bytes{persistentvolume="pvc-8b6eb31b-cecd-11e9-b8b2-42010a800039"} 5368709120
pv_capacity_bytes{persistentvolume="pvc-577bc663-cf18-11e9-b8b2-42010a800039"} 5368709120
pv_utilization_bytes{persistentvolume="pvc-8b6eb31b-cecd-11e9-b8b2-42010a800039"} 218944
pv_utilization_bytes{persistentvolume="pvc-577bc663-cf18-11e9-b8b2-42010a800039"} 218824
--collector.textfile.directory=/shared_vol

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

image