> In addition ist it expected that the regex in the generator is different 
than in the snmp.yml afterwards?

To clarify this point:

^  = match at start of string only
(?:    )   = non-capturing group
$ = match at end of string only

Therefore, by wrapping your original regex with ^(?:   )$ it anchors it at 
the start and end of the string, without allowing any spurious characters 
before or after.  This is for consistency with how Prometheus handles 
regexs elsewhere, e.g. in label matchers, rewriting rules etc.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prometheus-users/75a7822d-f6ee-4fbc-8e3b-3b3c4afdf2e6n%40googlegroups.com.

Reply via email to