5bc099c2de
metrics wip
29 lines
479 B
Ruby
29 lines
479 B
Ruby
module Gitlab
|
|
module Metrics
|
|
# Mocks ::Prometheus::Client::Metric and all derived metrics
|
|
class DummyMetric
|
|
def get(*args)
|
|
raise NotImplementedError
|
|
end
|
|
|
|
def values(*args)
|
|
raise NotImplementedError
|
|
end
|
|
|
|
# counter
|
|
def increment(*args)
|
|
# noop
|
|
end
|
|
|
|
# gauge
|
|
def set(*args)
|
|
# noop
|
|
end
|
|
|
|
# histogram / summary
|
|
def observe(*args)
|
|
# noop
|
|
end
|
|
end
|
|
end
|
|
end
|