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
16901dde
Commit
16901dde
authored
Jun 17, 2020
by
rpereira2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for metric_label_values variable type
parent
1fee822f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
doc/user/project/integrations/prometheus.md
doc/user/project/integrations/prometheus.md
+23
-0
No files found.
doc/user/project/integrations/prometheus.md
View file @
16901dde
...
...
@@ -846,6 +846,29 @@ templating:
default
:
true
# (Optional) This option should be the default value of this variable.
```
##### `metric_label_values` variable type
CAUTION:
**Warning:**
This variable type is an _alpha_ feature, and is subject to change at any time
without prior notice!
###### Full syntax
This example creates a variable called
`variable2`
. The values of the dropdown will
be all the different values of the
`backend`
label in the Prometheus series described by
`up{env="production"}`
.
```
yaml
templating
:
variables
:
variable2
:
# The variable name that can be interpolated in queries.
label
:
'
Variable
2'
# (Optional) label that will appear in the UI for this dropdown.
type
:
metric_label_values
options
:
series_selector
:
'
up{env="production"}'
label
:
'
backend'
```
### Add related links to custom dashboards
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/216385) in GitLab 13.1.
...
...
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