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.


selectors dimension = (value1, value2, value3, …)| metric query


  • selectors is one or more metadata key-value pairs or keywords that scope your query.
  • dimension is the dimension (field) you want to match. value1, value2, value3, and so on are values of dimension that you want to limit your query to.


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)
Privacy Statement
Terms of Use

Copyright © 2023 by Sumo Logic, Inc.