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
9f484e55
Commit
9f484e55
authored
Mar 30, 2020
by
Dhiraj Bodicherla
Committed by
Achilleas Pipinellis
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for bar charts
parent
65b9fb37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
doc/user/project/integrations/img/prometheus_dashboard_bar_chart_panel_type_v12.10.png
.../img/prometheus_dashboard_bar_chart_panel_type_v12.10.png
+0
-0
doc/user/project/integrations/prometheus.md
doc/user/project/integrations/prometheus.md
+29
-0
No files found.
doc/user/project/integrations/img/prometheus_dashboard_bar_chart_panel_type_v12.10.png
0 → 100644
View file @
9f484e55
4.65 KB
doc/user/project/integrations/prometheus.md
View file @
9f484e55
...
...
@@ -434,6 +434,35 @@ Note the following properties:
![
anomaly panel type
](
img/prometheus_dashboard_anomaly_panel_type.png
)
##### Bar chart
To add a bar chart to a dashboard, look at the following sample dashboard file:
```
yaml
dashboard
:
'
Dashboard
Title'
panel_groups
:
-
group
:
'
Group
title'
panels
:
-
type
:
bar
title
:
"
Http
Handlers"
x_label
:
'
Response
Size'
y_axis
:
name
:
"
Handlers"
metrics
:
-
id
:
prometheus_http_response_size_bytes_bucket
query_range
:
"
sum(increase(prometheus_http_response_size_bytes_bucket[1d]))
by
(handler)"
unit
:
'
Bytes'
```
Note the following properties:
| Property | Type | Required | Description |
| ------ | ------ | ------ | ------ |
|
`type`
| string | yes | Type of panel to be rendered. For bar chart types, set to
`bar`
|
|
`query_range`
| yes | yes | For bar chart, you must use a [range query]
![
bar chart panel type
](
img/prometheus_dashboard_bar_chart_panel_type_v12.10.png
)
##### Column chart
To add a column panel type to a dashboard, look at the following sample dashboard 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