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
472b005e
Commit
472b005e
authored
Mar 30, 2020
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'docs-add-monitoring-dashboard-bar-charts' into 'master'
Add docs for bar charts See merge request gitlab-org/gitlab!27173
parents
666755d6
9f484e55
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 @
472b005e
4.65 KB
doc/user/project/integrations/prometheus.md
View file @
472b005e
...
@@ -434,6 +434,35 @@ Note the following properties:
...
@@ -434,6 +434,35 @@ Note the following properties:
![
anomaly panel type
](
img/prometheus_dashboard_anomaly_panel_type.png
)
![
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
##### Column chart
To add a column panel type to a dashboard, look at the following sample dashboard file:
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