23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
- @no_container = true
|
|
- 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)
|
|
|
|
#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'),
|
|
"empty-getting-started-svg-path": image_path('illustrations/monitoring/getting_started.svg'),
|
|
"empty-loading-svg-path": image_path('illustrations/monitoring/loading.svg'),
|
|
"empty-no-data-svg-path": image_path('illustrations/monitoring/no_data.svg'),
|
|
"empty-unable-to-connect-svg-path": image_path('illustrations/monitoring/unable_to_connect.svg'),
|
|
"metrics-endpoint": additional_metrics_project_environment_path(@project, @environment, format: :json),
|
|
"deployment-endpoint": project_environment_deployments_path(@project, @environment, format: :json),
|
|
"project-path": project_path(@project),
|
|
"tags-path": project_tags_path(@project),
|
|
"has-metrics": "#{@environment.has_metrics?}" } }
|