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
bafa86de
Commit
bafa86de
authored
Jun 27, 2018
by
Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dropdown, without data
parent
3fc8aa2c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
9 deletions
+30
-9
app/assets/javascripts/monitoring/components/dashboard.vue
app/assets/javascripts/monitoring/components/dashboard.vue
+23
-1
app/assets/stylesheets/pages/environments.scss
app/assets/stylesheets/pages/environments.scss
+7
-0
app/views/projects/environments/metrics.html.haml
app/views/projects/environments/metrics.html.haml
+0
-8
No files found.
app/assets/javascripts/monitoring/components/dashboard.vue
View file @
bafa86de
...
...
@@ -155,8 +155,30 @@ export default {
<
template
>
<div
v-if=
"!showEmptyState"
class=
"prometheus-graphs"
class=
"prometheus-graphs
prepend-top-10
"
>
<div
class=
"environments"
>
Environment
<div
class=
"dropdown prepend-left-10"
>
<!--Set up the actual data-->
<button
class=
"dropdown-menu-toggle"
data-toggle=
"dropdown"
type=
"button"
>
Production
<i
class=
"fa fa-chevron-down"
></i>
</button>
<div
class=
"dropdown-menu dropdown-menu-selectable dropdown-menu-drop-up"
>
<a
href=
"#"
class=
"dropdown-item"
>
Staging
</a>
</div>
</div>
</div>
<graph-group
v-for=
"(groupData, index) in store.groups"
:key=
"index"
...
...
app/assets/stylesheets/pages/environments.scss
View file @
bafa86de
...
...
@@ -222,6 +222,13 @@
}
}
.prometheus-graphs
{
.environments
{
display
:
flex
;
align-items
:
center
;
}
}
.environments-actions
{
.external-url
,
.monitoring-url
,
...
...
app/views/projects/environments/metrics.html.haml
View file @
bafa86de
...
...
@@ -2,14 +2,6 @@
-
page_title
"Metrics for environment"
,
@environment
.
name
.prometheus-container
{
class:
container_class
}
.top-area
.row
.col-sm-6
%h3
Environment:
=
link_to
@environment
.
name
,
environment_path
(
@environment
)
=
@environments
.
to_a
#prometheus-graphs
{
data:
{
"settings-path"
:
edit_project_service_path
(
@project
,
'prometheus'
),
"clusters-path"
:
project_clusters_path
(
@project
),
"documentation-path"
:
help_page_path
(
'administration/monitoring/prometheus/index.md'
),
...
...
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