Skip to content

Instantly share code, notes, and snippets.

@kylebrandt
Created September 19, 2023 13:59
Show Gist options
  • Save kylebrandt/94bb1ad8a4ea60ff0f531c2b9bde13ae to your computer and use it in GitHub Desktop.
Save kylebrandt/94bb1ad8a4ea60ff0f531c2b9bde13ae to your computer and use it in GitHub Desktop.

Record Queries Multi

Recorded Queries will record multiple metrics, identified by labels, if the input data is numeric dataplane data.

Numeric dataplane data comes:

  • directly from a datasource, prometheus instant queries are an example
  • Server Side Expressions Reduce operation results (which can takes various forms of time series data as input)

Example 1

Recorded Query is created directly on datasource which has dataplane numeric data.

The second query in the screenshot is query the recorded query results. The labels/dimensions from the result are added to created metric.

image

image

Example 2

This one has the RQ created on expression. The input data is not dataplane data, but SSE turns it into DP numeric data, and then RQ multiple items is supported:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment