Module: Prometheus::Client

Defined in:
lib/prometheus/client.rb,
lib/prometheus/client/push.rb,
lib/prometheus/client/gauge.rb,
lib/prometheus/client/config.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/histogram.rb,
lib/prometheus/client/formats/text.rb,
lib/prometheus/client/label_set_validator.rb,
lib/prometheus/client/data_stores/synchronized.rb,
lib/prometheus/client/data_stores/single_threaded.rb,
lib/prometheus/client/data_stores/direct_file_store.rb

Overview

Client is a ruby implementation for a Prometheus compatible client.

Defined Under Namespace

Modules: DataStores, Formats Classes: Config, Counter, Gauge, Histogram, LabelSetValidator, Metric, Push, Registry, Summary

Constant Summary collapse

VERSION =
'2.1.0'

Class Method Summary collapse

Class Method Details

.configObject


14
15
16
# File 'lib/prometheus/client.rb', line 14

def self.config
  @config ||= Config.new
end

.registryObject

Returns a default registry object


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

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