Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fef80491
Commit
fef80491
authored
Jun 02, 2020
by
rpereira2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for __range variable
parent
460e72c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
doc/user/project/integrations/prometheus.md
doc/user/project/integrations/prometheus.md
+9
-0
No files found.
doc/user/project/integrations/prometheus.md
View file @
fef80491
...
...
@@ -209,10 +209,19 @@ GitLab supports a limited set of [CI variables](../../../ci/variables/README.md)
-
`ci_project_namespace`
-
`ci_project_path`
-
`ci_environment_name`
-
`__range`
NOTE:
**Note:**
Variables for Prometheus queries must be lowercase.
###### __range
The
`__range`
variable is useful in Prometheus
[
range vector selectors
](
https://prometheus.io/docs/prometheus/latest/querying/basics/#range-vector-selectors
)
.
Its value is the total number of seconds in the dashboard's time range.
For example, if the dashboard time range is set to 8 hours, the value of
`__range`
is
`28800s`
.
##### User-defined variables
[
Variables can be defined
](
#templating-templating-properties
)
in a custom dashboard YAML file.
...
...
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