2019-07-01 21:43:21 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Gitlab
|
2019-07-09 21:31:28 +00:00
|
|
|
module DatabaseImporters
|
2019-07-01 21:43:21 +00:00
|
|
|
module CommonMetrics
|
|
|
|
module PrometheusMetricEnums
|
|
|
|
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,
|
2020-01-31 18:09:11 +00:00
|
|
|
system: 2,
|
2020-09-02 18:10:40 +00:00
|
|
|
custom: 3,
|
2020-01-31 18:09:11 +00:00
|
|
|
|
|
|
|
cluster_health: -100
|
2019-07-01 21:43:21 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
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)'),
|
2020-01-31 18:09:11 +00:00
|
|
|
kubernetes: _('System metrics (Kubernetes)'),
|
2020-09-02 18:10:40 +00:00
|
|
|
cluster_health: _('Cluster Health'),
|
|
|
|
custom: _('Custom metrics')
|
2019-07-01 21:43:21 +00:00
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|