Module: Prometheus::Client

Defined in:
lib/prometheus/client.rb,
lib/prometheus/client/push.rb,
lib/prometheus/client/gauge.rb,
lib/prometheus/client/metric.rb,
lib/prometheus/client/counter.rb,
lib/prometheus/client/summary.rb,
lib/prometheus/client/version.rb,
lib/prometheus/client/registry.rb,
lib/prometheus/client/formats/json.rb,
lib/prometheus/client/formats/text.rb,
lib/prometheus/client/rack/exporter.rb,
lib/prometheus/client/rack/collector.rb,
lib/prometheus/client/label_set_validator.rb

Overview

Client is a ruby implementation for a Prometheus compatible client.

Defined Under Namespace

Modules: Formats, Rack Classes: Counter, Gauge, LabelSetValidator, Metric, Push, Registry, Summary

Constant Summary collapse

VERSION =
'0.4.3'

Class Method Summary collapse

Class Method Details

.registryObject

Returns a default registry object



9
10
11
# File 'lib/prometheus/client.rb', line 9

def self.registry
  @registry ||= Registry.new
end