lenskit.config.PowerQueries#

class lenskit.config.PowerQueries#

Bases: TypedDict

Queries for requesting power consumption data from Prometheus.

Each entry is a Python format string (for str.format()), that will be used to format a dictionary {"elapsed": time_ms}. The result should be a valid Prometheus query that returns the power consumption in Joules (watt seconds) over the last time_ms milliseconds.

system: str#

Total (chassis or system) power consumption.

cpu: str#

CPU power consumption.

gpu: str#

GPU power consumption.