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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-05-30 01:18:46 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 20:45:58 +0300
commitb668aaf4268d552315152057729f73f5c5d72147 (patch)
treeb73c130db449e1f43ff8b1d1f9625bd6fa93a011 /app/services
parentae8f7666e597493ab404f8524c1216a924338291 (diff)
Split the metrics implementation to separate modules for Influx and Prometheus
Diffstat (limited to 'app/services')
-rw-r--r--app/services/metrics_service.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/services/metrics_service.rb b/app/services/metrics_service.rb
index 025598cdc76..2a001dc5108 100644
--- a/app/services/metrics_service.rb
+++ b/app/services/metrics_service.rb
@@ -30,14 +30,4 @@ class MetricsService
def multiprocess_metrics_path
@multiprocess_metrics_path ||= Rails.root.join(ENV['prometheus_multiproc_dir']).freeze
end
-
- def metric_to_prom_line(metric)
- labels = metric.labels&.map { |key, value| "#{key}=\"#{value}\"" }&.join(',') || ''
-
- if labels.empty?
- "#{metric.name} #{metric.value}"
- else
- "#{metric.name}{#{labels}} #{metric.value}"
- end
- end
end