Configure Recording Rules

Sysdig now supports Prometheus recording rules for metric aggregation and querying.

You can configure recording rules by using the Sysdig API. Ensure that you define them in a Prometheus compatible way. The mandatory parameters are:

  • record: The unique name of the time series. It must be a valid metric name.

  • expr: The PromQL expression to evaluate. In each evaluation cycle, the given expression is evaluated and the result is recorded as a new set of time series with the metric name specified in record.

  • labels: The unique identifiers to add or overwrite before storing the result.

To enable this feature in your environment, contact Sysdig Support.