reic
Input Stack:
|
⇨ | Output Stack:
|
Warning
Case-insensitive matching requires a full scan of all time series for the specified key, which can be significantly slower than exact matches. Use this operator sparingly and only when case-insensitive matching is genuinely required. For case-sensitive regex matching, use :re instead.
Select time series where the value for a key matches the specified regular expression with case insensitive matching. The regular expression value will be automatically anchored at the start. For more information on supported patterns, see the Java regular expressions documentation.
Parameters¶
- key: The tag key to match against (e.g.,
name
,nf.app
) - value: A regular expression pattern to match against the key's value (case-insensitive)
Examples¶
Case-insensitive matching where query casing doesn't match the data:
name,ssCPU,:reic
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 |
Notice that the casing for the query (ssCPU
) does not match the data (ssCpu
), but the
case-insensitive matching still finds the correct time series.