Class: PrometheusExporter::Server::CollectorBase

Inherits:
Object
  • Object
show all
Defined in:
lib/prometheus_exporter/server/collector_base.rb

Overview

minimal interface to implement a customer collector

Direct Known Subclasses

Collector

Instance Method Summary collapse

Instance Method Details

#process(str) ⇒ Object

called each time a string is delivered from the web



7
8
# File 'lib/prometheus_exporter/server/collector_base.rb', line 7

def process(str)
end

#prometheus_metrics_text(str) ⇒ Object

a string denoting the metrics



11
12
# File 'lib/prometheus_exporter/server/collector_base.rb', line 11

def prometheus_metrics_text(str)
end