Optune servo driver for Prometheus
- This driver requires
measure.py
base class from the Optune servo core. It can be copied or symlinked here as part of packaging. - The default Prometheus endpoint is
http://prometheus:9090/metrics
; you must set the environment variablePROMETHEUS_ENDPOINT
in the servo's container if you want to use a different endpoint. - Alternatively, Prometheus endpoint may be specified in
prometheus_endpoint
key of driver configuration. If this key exists and is not empty, value specified will overridePROMETHEUS_ENDPOINT
. - If environment variable
PROMETHEUS_USE_DRIVER_NAME
is set to "1", then the driver will use configuration matching driver filename in config.yaml instead of a standardprom
. This allows querying multiple Prometheus server viaservo-magg
driver. - Parameter
period
of the query definition specifies step forquery_range
function. Default period is 60s. Ifrate
or similar function is used, time period for it should match theperiod
parameter.
Notes
- You can define multiple metrics.
- The measurement precision is 1 minute.
- You may get for. ex. for requested duration of 10 minutes 11 data points due to Prometheus returning datapoints for a requested time range inclusively.