Class: Metrics::Dashboard::PodDashboardService

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

Constant Summary collapse

DASHBOARD_PATH =
'config/prometheus/pod_metrics.yml'
DASHBOARD_NAME =
N_('K8s pod health')
DASHBOARD_VERSION =

SHA256 hash of dashboard content

'3a91b32f91b2dd3d90275333c0ea3630b3f3f37c4296ede5b5eef59bf523d66b'
SEQUENCE =
[
  STAGES::MetricEndpointInserter,
  STAGES::VariableEndpointInserter,
  STAGES::PanelIdsInserter
].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


19
20
21
22
23
24
25
26
27
# File 'app/services/metrics/dashboard/pod_dashboard_service.rb', line 19

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