debian-mirror-gitlab/lib/gitlab/metrics.rb

19 lines
304 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
module Gitlab
module Metrics
2018-03-17 18:26:18 +05:30
include Gitlab::Metrics::InfluxDb
include Gitlab::Metrics::Prometheus
2020-01-12 00:16:45 +05:30
@error = false
def self.enabled?
2017-09-10 17:25:29 +05:30
influx_metrics_enabled? || prometheus_metrics_enabled?
end
2020-01-12 00:16:45 +05:30
def self.error?
@error
end
end
end