diff options
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 |