Module: Gitlab::DatabaseImporters::CommonMetrics::PrometheusMetricEnums

Defined in:
lib/gitlab/database_importers/common_metrics/prometheus_metric_enums.rb

Class Method Summary collapse

Class Method Details

.group_titlesObject


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/gitlab/database_importers/common_metrics/prometheus_metric_enums.rb', line 27

def self.group_titles
  {
    business: _('Business metrics (Custom)'),
    response: _('Response metrics (Custom)'),
    system: _('System metrics (Custom)'),
    nginx_ingress_vts: _('Response metrics (NGINX Ingress VTS)'),
    nginx_ingress: _('Response metrics (NGINX Ingress)'),
    ha_proxy: _('Response metrics (HA Proxy)'),
    aws_elb: _('Response metrics (AWS ELB)'),
    nginx: _('Response metrics (NGINX)'),
    kubernetes: _('System metrics (Kubernetes)'),
    cluster_health: _('Cluster Health'),
    custom: _('Custom metrics')
  }
end

.groupsObject


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/gitlab/database_importers/common_metrics/prometheus_metric_enums.rb', line 7

def self.groups
  {
    # built-in groups
    nginx_ingress_vts: -1,
    ha_proxy: -2,
    aws_elb: -3,
    nginx: -4,
    kubernetes: -5,
    nginx_ingress: -6,

    # custom groups
    business: 0,
    response: 1,
    system: 2,
    custom: 3,

    cluster_health: -100
  }
end