Add csi-volume-device-exporter: Prometheus exporter for CSI volume-to-device mapping#1039
Closed
sradco wants to merge 1 commit into
Closed
Add csi-volume-device-exporter: Prometheus exporter for CSI volume-to-device mapping#1039sradco wants to merge 1 commit into
sradco wants to merge 1 commit into
Conversation
…-device mapping Add a new csi-volume-device-exporter binary that discovers CSI volume to block device mappings on each node and exposes them as Prometheus metrics. This enables correlating storage path health metrics (multipath state, NVMe-oF subsystem health) with Kubernetes PersistentVolumes. Components: - cmd/csi-volume-device-exporter: main entry point - internal/exporter/discovery: volume discovery engines (kubelet, trident, HPE) with sysfs/mountinfo resolution - internal/exporter/monitoring: Prometheus metrics and alert rules - deploy/exporter: DaemonSet, PodMonitor, and OpenShift SCC manifests - docs/csi-volume-device-exporter: feature docs and alert runbooks - hack/prom-rule-ci: promtool-based alert rule tests - build/Containerfile.exporter: container image build - test/e2e/exporter: end-to-end tests Alert rules: - CSIVolumeMultipathDegraded/Lost: multipath path health - CSIVolumeNVMeSubsystemDegraded/Lost: NVMe-oF subsystem health - CSIVolumeDeviceExporterDown: exporter availability Based on: openshift-virtualization/csi-volume-device-exporter#1 Co-authored-by: Cursor <cursoragent@cursor.com>
Author
|
Closing to rework the content before resubmitting. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
csi-volume-device-exporterbinary that discovers CSI volume to block device mappings on each node and exposes them as Prometheus metrics (csi_volume_node_device_info)Components added
cmd/csi-volume-device-exporter/internal/exporter/discovery/internal/exporter/monitoring/deploy/exporter/docs/csi-volume-device-exporter/hack/prom-rule-ci/build/Containerfile.exportertest/e2e/exporter/tools/generate-exporter-rules/Discovery engines
vol_data.json+/proc/1/mountinfo+/sys/dev/block/to map CSI volumes to block devices; handles filesystem, block, and publish-mount volumesdeviceInfo.jsonfilesAll discoverers resolve LUKS-over-multipath stacks, returning the underlying multipath device.
Based on: openshift-virtualization/csi-volume-device-exporter#1
Test plan
go test -race ./internal/exporter/...go build ./cmd/csi-volume-device-exporter/...go vetcleango test -tags=e2e ./test/e2e/exporter/hack/prom-rule-ci/verify-rules.shmake docker-build-exporterMade with Cursor