Welcome to mirror list, hosted at ThFree Co, Russian Federation.

metric_group.rb « prometheus « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e91c6fb2e2762120cb378506ce4a0389702708ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Gitlab
  module Prometheus
    class MetricGroup
      include ActiveModel::Model

      attr_accessor :name, :priority, :metrics
      validates :name, :priority, :metrics, presence: true

      def self.common_metrics
        AdditionalMetricsParser.load_groups_from_yaml
      end

      # EE only
      def self.for_project(_)
        common_metrics
      end
    end
  end
end