Provides default Prometheus registry and config for metrics collection.
# Source: https://github.com/prometheus/client_ruby | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# encoding: UTF-8
require 'prometheus/client/registry'
require 'prometheus/client/config'
module Prometheus
# Client is a ruby implementation for a Prometheus compatible client.
module Client
# Returns a default registry object
def self.registry
@registry ||= Registry.new
end
def self.config
@config ||= Config.new
end
end
end
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key