How psyinfra/prometheus-raritan-pdu-exporter works
This retired exporter serves Prometheus metrics collected live from configured Raritan PDUs. Its workflow loads PDU credentials, exposes an HTTP scrape endpoint, discovers connectors and sensors, reads their values through the Raritan bulk JSON-RPC API, and converts readings into Prometheus metric families. The graph separates serving, collection/modeling, and protocol concerns. Source excerpts show the main calls; README statements support scrape and health-check behavior. Some interface implementation is excerpted only partially, so omitted details are not inferred.
Main entry points: main.py CLI and server · interfaces.py PDU inventory and readings · exporter.py Metric collection · jsonrpc.py Bulk JSON-RPC client
Components 10
HTTP serving
- CLI and server
prometheus_raritan_pdu_exporter/main.py - Metrics and health endpoints
prometheus_raritan_pdu_exporter/main.py
PDU collection
- Metric collection
prometheus_raritan_pdu_exporter/exporter.py - PDU inventory and readings
prometheus_raritan_pdu_exporter/interfaces.py
Protocol and modeling
- Sensor metric model
prometheus_raritan_pdu_exporter/interfaces.py - Bulk JSON-RPC client
prometheus_raritan_pdu_exporter/jsonrpc.py - Response diagnostics
prometheus_raritan_pdu_exporter/debug.py
Other components
- Exporter operator
- Prometheus scraper
- Raritan PDU
Connections 12
- Exporter operator → CLI and server: configures
prometheus_raritan_pdu_exporter/main.py - CLI and server → Bulk JSON-RPC client: creates auth
prometheus_raritan_pdu_exporter/main.py - CLI and server → Metric collection: registers
prometheus_raritan_pdu_exporter/main.py - CLI and server → Metrics and health endpoints: serves
prometheus_raritan_pdu_exporter/main.py - Prometheus scraper → Metrics and health endpoints: requests metrics
README.md - Metrics and health endpoints → Metric collection: triggers collection
README.md - Metric collection → PDU inventory and readings: sets up and reads
prometheus_raritan_pdu_exporter/exporter.py - Metric collection → Sensor metric model: groups readings
prometheus_raritan_pdu_exporter/exporter.py - PDU inventory and readings → Bulk JSON-RPC client: sends requests
prometheus_raritan_pdu_exporter/interfaces.py - Bulk JSON-RPC client → Raritan PDU: posts bulk calls
prometheus_raritan_pdu_exporter/jsonrpc.py - PDU inventory and readings → Sensor metric model: builds sensor metrics
prometheus_raritan_pdu_exporter/interfaces.py - PDU inventory and readings → Response diagnostics: reports missing responses
prometheus_raritan_pdu_exporter/interfaces.py