2017-03-07 16:57:42 +00:00
|
|
|
- @no_container = true
|
|
|
|
- page_title "Metrics for environment", @environment.name
|
2017-09-22 04:18:43 +00:00
|
|
|
|
2017-06-20 08:50:31 +00:00
|
|
|
.prometheus-container{ class: container_class }
|
2017-06-29 17:06:35 +00:00
|
|
|
#prometheus-graphs{ data: { "settings-path": edit_project_service_path(@project, 'prometheus'),
|
2018-01-31 21:04:53 +00:00
|
|
|
"clusters-path": project_clusters_path(@project),
|
2018-06-29 19:07:34 +00:00
|
|
|
"current-environment-name": @environment.name,
|
2017-06-20 08:50:31 +00:00
|
|
|
"documentation-path": help_page_path('administration/monitoring/prometheus/index.md'),
|
2017-12-12 20:12:47 +00: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 22:23:41 +00:00
|
|
|
"empty-no-data-svg-path": image_path('illustrations/monitoring/no_data.svg'),
|
2017-12-12 20:12:47 +00:00
|
|
|
"empty-unable-to-connect-svg-path": image_path('illustrations/monitoring/unable_to_connect.svg'),
|
2018-02-22 06:07:58 +00:00
|
|
|
"metrics-endpoint": additional_metrics_project_environment_path(@project, @environment, format: :json),
|
|
|
|
"deployment-endpoint": project_environment_deployments_path(@project, @environment, format: :json),
|
2018-06-28 17:37:27 +00:00
|
|
|
"environments-endpoint": project_environments_path(@project, format: :json),
|
2017-12-04 21:39:07 +00:00
|
|
|
"project-path": project_path(@project),
|
|
|
|
"tags-path": project_tags_path(@project),
|
2018-02-22 06:07:58 +00:00
|
|
|
"has-metrics": "#{@environment.has_metrics?}" } }
|