Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
45c62d89
Commit
45c62d89
authored
Sep 11, 2015
by
Brian Brazil
Committed by
Julius Volz
Oct 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document regex anchoring.
parent
2291b101
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
configuration.md
content/docs/operating/configuration.md
+1
-1
basics.md
content/docs/querying/basics.md
+1
-1
template_reference.md
content/docs/visualization/template_reference.md
+2
-2
No files found.
content/docs/operating/configuration.md
View file @
45c62d89
...
...
@@ -506,7 +506,7 @@ prefix is guaranteed to never be used by Prometheus itself.
`<regex>`
is any valid
[
RE2 regular
expression](https://github.com/google/re2/wiki/Syntax). It is required for
the
`replace`
,
`keep`
,
`drop`
and
`labelmap`
actions.
the
`replace`
,
`keep`
,
`drop`
and
`labelmap`
actions.
The regex is fully anchored.
`<relabel_action>`
determines the relabeling action to take:
...
...
content/docs/querying/basics.md
View file @
45c62d89
...
...
@@ -85,7 +85,7 @@ For example, this selects all `http_requests_total` time series for `staging`,
http_requests_total{environment=~"staging|testing|development",method!="GET"}
Label matchers that match empty label values also select all time series that do
not have the specific label set at all.
not have the specific label set at all.
Regex-matches are fully anchored.
Vector selectors must either specify a name or at least one label matcher
that does not match the empty string. The following expression is illegal:
...
...
content/docs/visualization/template_reference.md
View file @
45c62d89
...
...
@@ -65,8 +65,8 @@ versions.
| Name | Arguments | Returns | Notes |
| ------------- | ------------- | ------- | ----------- |
| title | string | string |
[
strings.Title
](
http://golang.org/pkg/strings/#Title
)
, capitalises first character of each word.|
| match | pattern, text | boolean |
[
regexp.MatchString
](
http://golang.org/pkg/regexp/#MatchString
)
Tests for a regexp match. |
| reReplaceAll | pattern, replacement, text | string |
[
Regexp.ReplaceAllString
](
http://golang.org/pkg/regexp/#Regexp.ReplaceAllString
)
Regexp substitution. |
| match | pattern, text | boolean |
[
regexp.MatchString
](
http://golang.org/pkg/regexp/#MatchString
)
Tests for a
unanchored
regexp match. |
| reReplaceAll | pattern, replacement, text | string |
[
Regexp.ReplaceAllString
](
http://golang.org/pkg/regexp/#Regexp.ReplaceAllString
)
Regexp substitution
, unanchored
. |
| graphLink | expr | string | Returns path to graph view in the
[
expression browser
](
/docs/visualization/browser/
)
for the expression. |
| tableLink | expr | string | Returns path to tabular ("Console") view in the
[
expression browser
](
/docs/visualization/browser/
)
for the expression. |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment