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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
15908cf2
Commit
15908cf2
authored
May 31, 2017
by
kushalpandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Prometheus Metrics Bundle, panel for Missing environment variables
parent
2742bbd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
app/views/projects/services/prometheus/_show.html.haml
app/views/projects/services/prometheus/_show.html.haml
+21
-4
No files found.
app/views/projects/services/prometheus/_show.html.haml
View file @
15908cf2
.row.prepend-top-default.append-bottom-default.prometheus-metrics-monitoring
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'prometheus_metrics'
)
.row.prepend-top-default.append-bottom-default.prometheus-metrics-monitoring.js-prometheus-metrics-monitoring
.col-lg-3
.col-lg-3
%h4
.prepend-top-0
%h4
.prepend-top-0
Metrics
Metrics
...
@@ -8,14 +11,28 @@
...
@@ -8,14 +11,28 @@
More information
More information
.col-lg-9
.col-lg-9
.panel.panel-default
.panel.panel-default
.js-panel-monitored-metrics
{
data:
{
"active-metrics"
=>
"#{namespace_project_prometheus_active_metrics_path(@project.namespace, @project)}.json"
}
}
.panel-heading
.panel-heading
%h3
.panel-title
%h3
.panel-title
Monitored
Monitored
%span
.badge-count.js-monitored-count
0
%span
.badge-count.js-monitored-count
0
.panel-body
.panel-body
.empty-metrics
.loading-metrics.js-loading-metrics
=
icon
(
'spinner spin 3x'
)
%p
Finding and configuring metrics...
.empty-metrics.hidden.js-empty-metrics
=
custom_icon
(
'icon_empty_metrics'
)
=
custom_icon
(
'icon_empty_metrics'
)
%p
No metrics are being monitored. To start monitoring, deploy to an environment.
%p
No metrics are being monitored. To start monitoring, deploy to an environment.
=
link_to
project_environments_path
(
@project
),
title:
'View environments'
,
class:
'btn btn-success'
do
=
link_to
project_environments_path
(
@project
),
title:
'View environments'
,
class:
'btn btn-success'
do
View environments
View environments
\ No newline at end of file
%ul
.metrics-list.hidden.js-metrics-list
.panel.panel-default.js-panel-missing-env-vars
.panel-heading
%h3
.panel-title
=
icon
(
'caret-right lg'
,
class:
'panel-toggle js-panel-toggle'
,
'aria-label'
=>
'Toggle panel'
)
Missing environment variable(s)
%span
.badge-count.js-env-var-count
0
.panel-body.hidden
.empty-metrics
%p
Nothing to show here at the moment
\ No newline at end of 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