Remove bits about substring matching from the docs (#5549)

Substring matching for labels doesn't work anymore.
These parts are misleading, and contradict with the rest of the
documentation.

Signed-off-by: Semyon Slepov <slepovss@gmail.com>
pull/5551/head
Semyon Slepov 6 years ago committed by Brian Brazil
parent b98e818876
commit 33f085a4d6

@ -88,8 +88,8 @@ against regular expressions. The following label matching operators exist:
* `=`: Select labels that are exactly equal to the provided string. * `=`: Select labels that are exactly equal to the provided string.
* `!=`: Select labels that are not equal to the provided string. * `!=`: Select labels that are not equal to the provided string.
* `=~`: Select labels that regex-match the provided string (or substring). * `=~`: Select labels that regex-match the provided string.
* `!~`: Select labels that do not regex-match the provided string (or substring). * `!~`: Select labels that do not regex-match the provided string.
For example, this selects all `http_requests_total` time series for `staging`, For example, this selects all `http_requests_total` time series for `staging`,
`testing`, and `development` environments and HTTP methods other than `GET`. `testing`, and `development` environments and HTTP methods other than `GET`.

@ -26,8 +26,7 @@ Note that an expression resulting in a range vector cannot be graphed directly,
but viewed in the tabular ("Console") view of the expression browser. but viewed in the tabular ("Console") view of the expression browser.
Using regular expressions, you could select time series only for jobs whose Using regular expressions, you could select time series only for jobs whose
name match a certain pattern, in this case, all jobs that end with `server`. name match a certain pattern, in this case, all jobs that end with `server`:
Note that this does a substring match, not a full string match:
http_requests_total{job=~".*server"} http_requests_total{job=~".*server"}

Loading…
Cancel
Save