Skip to main content

Crate pistachio

Crate pistachio 

Source
Expand description

§pistachio

Pistachio is a Prometheus exporter written in Rust, designed for monitoring UPS devices using Network UPS Tools (NUT).

Structs§

Args
A collection of arguments to be parsed from the command line or environment.
Metrics
A collection of all registered metrics, both labelled and unlabelled.

Functions§

create_connection
Creates a connection for communicating with the NUT server.
get_ups_vars
Connects to the NUT server to produce a map of all available UPS variables, along with their values and descriptions.