Class: MetricsService

Inherits:
Object
  • Object
show all
Defined in:
app/services/metrics_service.rb

Instance Method Summary collapse

Instance Method Details

#metrics_textObject



14
15
16
# File 'app/services/metrics_service.rb', line 14

def metrics_text
  prometheus_metrics_text
end

#prometheus_metrics_textObject



6
7
8
9
10
11
12
# File 'app/services/metrics_service.rb', line 6

def prometheus_metrics_text
  if Feature.enabled?(:prom_metrics_rust)
    ::Prometheus::Client::Formats::Text.marshal_multiprocess(multiprocess_metrics_path, use_rust: true)
  else
    ::Prometheus::Client::Formats::Text.marshal_multiprocess(multiprocess_metrics_path)
  end
end