debian-mirror-gitlab/lib/gitlab/metrics.rb
2020-01-12 00:16:45 +05:30

18 lines
304 B
Ruby

# frozen_string_literal: true
module Gitlab
module Metrics
include Gitlab::Metrics::InfluxDb
include Gitlab::Metrics::Prometheus
@error = false
def self.enabled?
influx_metrics_enabled? || prometheus_metrics_enabled?
end
def self.error?
@error
end
end
end