Class: Insights::API::Common::Metrics
- Inherits:
-
Object
- Object
- Insights::API::Common::Metrics
- Defined in:
- lib/insights/api/common/metrics.rb
Class Method Summary collapse
Class Method Details
.activate(config, prefix, args = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/insights/api/common/metrics.rb', line 5 def self.activate(config, prefix, args = {}) require 'prometheus_exporter' require 'prometheus_exporter/client' setup_custom_metrics(args[:custom_metrics]) return if metrics_port == 0 ensure_exporter_server enable_in_process_metrics enable_web_server_metrics(prefix) end |