Regex uses all metrics that contain your input value. Typing
aws.elb.httpcode.* would match both
aws.elb.httpcode_backend_2xx, as well as
We recommend testing any regular expressions that you create at https://regexr.com.
Match the start and end of the string contained between
Matches the key-value pair CloudWisdom = true
Match multiple values separated by
Matches any of the following key-value pairs:
Name = my-server-one
Name = my-server-two
Name = my-server-three
Match any character(s) using ., which acts as a wildcard.
Matches any value (e.g.,
Name = myProd-app-1,
Name = yourProd-app-1) as long as
Escape special regex characters
. * / using a
Matches the key-value pair
Name = my.server.one.
For a list of special regex characters you may have to escape, consult this page.
Match an entire website’s directory using
Make the URL more specific to match everything from a particular part of the directory.
Matches anything in the
- Not a Match:
Match multiple containers between
( ) and separated by
|. The following would match any of the following container IDs and exclude them from collection:
metrics_blacklist = containers. (abcdef123456|123456abcdef|ghijkl789012)..*
Use a negative lookahead (
?!) to specify a group that cannot match after the main expression–if something matches, the result is discarded. The following would match anything but the
docsindices and exclude them from collection.
metrics_blacklist = elasticsearch .indices.(?!_all$|datastore$|docs$)
Add another index to a negative lookahead by placing the index name between