Skip to main content

in Metrics Operator

The in operator functionality can be used in a metrics query selector as shorthand for multiple OR conditions.

Syntax

<selectors> <field>=(<value>[, <value>,])

Where:

  • <selectors> is one or more metadata key-value pairs or keywords that scope your query.
  • <field> is the field (dimension) you want to match.
  • <value> is the value of dimension that you want to limit your query to.

Example

This example will match time series in which the value of the dimX field is one of the strings in the array enclosed in parentheses.

metric=CPU_Total dimX=(123, 345, 567)
Status
Legal
Privacy Statement
Terms of Use

Copyright © 2024 by Sumo Logic, Inc.