in
Input Stack:
|
⇨ | Output Stack:
|
Select time series where the value for a key matches any value in the specified list. This is
more efficient than using multiple :eq
conditions combined with :or
when you need to match
against several possible values for the same key.
Parameters¶
- key: The tag key to check (e.g.,
name
,nf.app
,status
) - values: A list of possible values to match against
Examples¶
Select time series where the name is either "ssCpuUser" or "ssCpuSystem":
name,(,ssCpuUser,ssCpuSystem,),:in
When matching against the sample data in the table below, the highlighted time series would be included in the result set:
Name | nf.app | nf.node |
---|---|---|
ssCpuUser | alerttest | i-0123 |
ssCpuSystem | alerttest | i-0123 |
ssCpuUser | nccp | i-0abc |
ssCpuSystem | nccp | i-0abc |
numRequests | nccp | i-0abc |
ssCpuUser | api | i-0456 |
This is equivalent to but more efficient than:
name,ssCpuUser,:eq,name,ssCpuSystem,:eq,:or