gitlab-org--gitlab-foss/lib/gitlab/metrics/null_metric.rb
Pawel Chojnacki ae8f7666e5 Add prometheus text formatter
+ rename controler method to #index from #metrics
 + remove assertion from nullMetric
2017-06-02 19:45:58 +02:00

10 lines
203 B
Ruby

module Gitlab
module Metrics
# Mocks ::Prometheus::Client::Metric and all derived metrics
class NullMetric
def method_missing(name, *args, &block)
nil
end
end
end
end