79198400

Date: 2024-11-18 00:13:56
Score: 1
Natty:
Report link

As @markalex already said you must match whole value of the label, but beware, if you want to match a special symbol which must be escaped - you must use two backslashes, not one. For example, to filter out all index names that begin with a dot, you must use the following regexp:

label_values(elk_indices_some_metric{indice_name!~"^\\..*"},indice_name)
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @markalex
  • Low reputation (0.5):
Posted by: Dmitry Perfilyev