Input Stack:
v: String
k: String
Output Stack:
(k=~/^v/i): Query


Ignoring the case will always result if a full scan for the key. This should be used sparingly and only for tag queries. If a case-insensitive match is not required, use :re intead.

Select time series where the value for a key matches the specified regular expression with case insenitive matching. For example, consider the following query:


When matching against the sample data in the table below, the highlighted time series would be included in the result set:

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 does not match the data. The regular expression value will be automatically anchored at the start. For more information on supported patterns, see the Java regular expressions documentation.