Skip to content

Prometheus metrics

GET
/metrics
curl --request GET \
--url http://pwrman.local/metrics

Prometheus text format: the chassis totals, the input voltage, and every port metric labeled with port and name. See Prometheus.

The metrics.

Media typetext/plain; version=0.0.4; charset=utf-8
string

Example

# TYPE pwrman_total_power_watts gauge
pwrman_total_power_watts 110.42
# TYPE pwrman_port_power_watts gauge
pwrman_port_power_watts{port="1",name="Laptop"} 54.30

Auth_read is on and the token is missing or wrong.

Media typeapplication/json
object
error
required

Why the request was refused, in words.

string

Example

{
"error": "bearer token required"
}

Another scrape is still being sent. Try again.

Media typetext/plain
string

Example

scrape in progress

USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.