Open tahajahangir opened 3 years ago
@tahajahangir, if promethes's node exporter exposes it, then it should be available for ZFS-LocalPV also. Could you try the latest node exporter?
I didn't understand the phrase " it should be available for ZFS-LocalPV".
The node exporter metrics are scraped and available (like node_zfs_zpool_dataset_nread
), but they contain only dataset-name (not namespace/pvc-name). We created a dashboard with expressions like this to join this data with pvc-name:
label_replace((rate(node_zfs_zpool_dataset_nread[1m])),"volumename", "$1", "dataset", ".*/(.*)" )
* on(volumename) group_left(persistentvolumeclaim, namespace)
kube_persistentvolumeclaim_info{cluster=~"$cluster", namespace=~"$namespace", persistentvolumeclaim=~"$volume"}
@pawanpraka1
This is great @tahajahangir. Adding this to our roadmap. Thanks.
@tahajahangir are you still interested in contributing this to community?
ZFS exposes several dataset metrics:
Can we have this metrics per PV?
The related issue in
prometheus/node_exporter
for scraping these metrics: https://github.com/prometheus/node_exporter/issues/1602