2017-03-07 11:57:42 -05:00
|
|
|
- @no_container = true
|
|
|
|
- page_title "Metrics for environment", @environment.name
|
2017-09-22 00:18:43 -04:00
|
|
|
|
2017-06-20 04:50:31 -04:00
|
|
|
.prometheus-container{ class: container_class }
|
2017-03-07 11:57:42 -05:00
|
|
|
.top-area
|
|
|
|
.row
|
|
|
|
.col-sm-6
|
2017-07-03 14:22:26 -04:00
|
|
|
%h3
|
2017-03-07 11:57:42 -05:00
|
|
|
Environment:
|
2017-03-29 12:10:30 -04:00
|
|
|
= link_to @environment.name, environment_path(@environment)
|
2017-03-07 11:57:42 -05:00
|
|
|
|
2017-06-29 13:06:35 -04:00
|
|
|
#prometheus-graphs{ data: { "settings-path": edit_project_service_path(@project, 'prometheus'),
|
2018-01-31 16:04:53 -05:00
|
|
|
"clusters-path": project_clusters_path(@project),
|
2017-06-20 04:50:31 -04:00
|
|
|
"documentation-path": help_page_path('administration/monitoring/prometheus/index.md'),
|
2017-12-12 15:12:47 -05:00
|
|
|
"empty-getting-started-svg-path": image_path('illustrations/monitoring/getting_started.svg'),
|
|
|
|
"empty-loading-svg-path": image_path('illustrations/monitoring/loading.svg'),
|
2018-03-19 18:23:41 -04:00
|
|
|
"empty-no-data-svg-path": image_path('illustrations/monitoring/no_data.svg'),
|
2017-12-12 15:12:47 -05:00
|
|
|
"empty-unable-to-connect-svg-path": image_path('illustrations/monitoring/unable_to_connect.svg'),
|
2018-02-22 01:07:58 -05:00
|
|
|
"metrics-endpoint": additional_metrics_project_environment_path(@project, @environment, format: :json),
|
|
|
|
"deployment-endpoint": project_environment_deployments_path(@project, @environment, format: :json),
|
2017-12-04 16:39:07 -05:00
|
|
|
"project-path": project_path(@project),
|
|
|
|
"tags-path": project_tags_path(@project),
|
2018-02-22 01:07:58 -05:00
|
|
|
"has-metrics": "#{@environment.has_metrics?}" } }
|