Class: Metrics::Dashboard::SystemDashboardService

Inherits:
PredefinedDashboardService show all
Defined in:
app/services/metrics/dashboard/system_dashboard_service.rb

Constant Summary collapse

DASHBOARD_PATH =
'config/prometheus/common_metrics.yml'
DASHBOARD_NAME =
N_('Overview')
DASHBOARD_VERSION =

SHA256 hash of dashboard content

'ce9ae27d2913f637de851d61099bc4151583eae68b1386a2176339ef6e653223'
SEQUENCE =
[
  STAGES::CommonMetricsInserter,
  STAGES::CustomMetricsInserter,
  STAGES::CustomMetricsDetailsInserter,
  STAGES::MetricEndpointInserter,
  STAGES::VariableEndpointInserter,
  STAGES::PanelIdsInserter,
  STAGES::AlertsInserter
].freeze

Constants inherited from BaseService

BaseService::STAGES

Constants included from Gitlab::Metrics::Dashboard::Errors

Gitlab::Metrics::Dashboard::Errors::DashboardProcessingError, Gitlab::Metrics::Dashboard::Errors::LayoutError, Gitlab::Metrics::Dashboard::Errors::MissingIntegrationError, Gitlab::Metrics::Dashboard::Errors::MissingQueryError, Gitlab::Metrics::Dashboard::Errors::NOT_FOUND_ERROR, Gitlab::Metrics::Dashboard::Errors::PanelNotFoundError

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Class Method Summary collapse

Methods inherited from PredefinedDashboardService

matching_dashboard?, out_of_the_box_dashboard?, #raw_dashboard, valid_params?

Methods inherited from BaseService

#get_dashboard, out_of_the_box_dashboard?, #raw_dashboard

Methods included from Gitlab::Metrics::Dashboard::Errors

#handle_errors, #panels_not_found!

Methods inherited from BaseService

#initialize

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

This class inherits a constructor from BaseService

Class Method Details

.all_dashboard_paths(_project) ⇒ Object


25
26
27
28
29
30
31
32
33
# File 'app/services/metrics/dashboard/system_dashboard_service.rb', line 25

def all_dashboard_paths(_project)
  [{
    path: DASHBOARD_PATH,
    display_name: _(DASHBOARD_NAME),
    default: true,
    system_dashboard: true,
    out_of_the_box_dashboard: out_of_the_box_dashboard?
  }]
end