Optune servo driver for Prometheus
- This driver requires
measure.pybase 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_ENDPOINTin the servo's container if you want to use a different endpoint. - Alternatively, Prometheus endpoint may be specified in
prometheus_endpointkey of driver configuration. If this key exists and is not empty, value specified will overridePROMETHEUS_ENDPOINT. - If environment variable
PROMETHEUS_USE_DRIVER_NAMEis 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-maggdriver. - Parameter
periodof the query definition specifies step forquery_rangefunction. Default period is 60s. Ifrateor similar function is used, time period for it should match theperiodparameter.
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.