has
Input Stack:
|
⇨ | Output Stack:
|
Select time series that have a specified tag key, regardless of the key's value. This is useful for filtering based on the presence of optional tags or finding time series that have been tagged with specific dimensions.
Parameters¶
- key: The tag key name to check for existence (e.g.,
nf.node
,status
,env
)
Examples¶
Select all time series that have a node identifier:
nf.node,:has
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 | |
ssCpuUser | api | i-0456 |
Notice that only time series with a value in the nf.node
column are highlighted, while
numRequests
which has no nf.node
tag is not selected.