diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-05-30 00:18:46 +0200 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-06-02 19:45:58 +0200 |
commit | b668aaf4268d552315152057729f73f5c5d72147 (patch) | |
tree | b73c130db449e1f43ff8b1d1f9625bd6fa93a011 /app/services | |
parent | ae8f7666e597493ab404f8524c1216a924338291 (diff) | |
download | gitlab-ce-b668aaf4268d552315152057729f73f5c5d72147.tar.gz |
Split the metrics implementation to separate modules for Influx and Prometheus
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/metrics_service.rb | 10 |
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 |