Commit d99fd44b authored by Robert Speicher's avatar Robert Speicher

Merge branch 'dbodicherla-add-base-metrics-dashboard-url' into 'master'

Add base url path for metrics dashboards

See merge request gitlab-org/gitlab!33553
parents c7e781d3 beb4d259
......@@ -68,6 +68,7 @@ module EnvironmentsHelper
return {} unless environment
{
'metrics-dashboard-base-path' => environment_metrics_path(environment),
'current-environment-name' => environment.name,
'has-metrics' => "#{environment.has_metrics?}",
'prometheus-status' => "#{environment.prometheus_status}",
......
......@@ -20,6 +20,7 @@ describe EnvironmentsHelper do
expect(metrics_data).to include(
'settings-path' => edit_project_service_path(project, 'prometheus'),
'clusters-path' => project_clusters_path(project),
'metrics-dashboard-base-path' => environment_metrics_path(environment),
'current-environment-name' => environment.name,
'documentation-path' => help_page_path('administration/monitoring/prometheus/index.md'),
'empty-getting-started-svg-path' => match_asset_path('/assets/illustrations/monitoring/getting_started.svg'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment