Sha256: 7e8d30bacb8723331a10e151b4716e7cd3ce5a771ae00f2ab1b55484a43f4720
Contents?: true
Size: 787 Bytes
Versions: 8
Compression:
Stored size: 787 Bytes
Contents
require 'prometheus/client/registry' require 'prometheus/client/mmaped_value' require 'prometheus/client/page_size' require 'logger' require 'tmpdir' module Prometheus module Client class Configuration attr_accessor :value_class, :multiprocess_files_dir, :initial_mmap_file_size, :logger, :pid_provider, :enable_protobuf def initialize @value_class = ::Prometheus::Client::MmapedValue @initial_mmap_file_size = ::Prometheus::Client::PageSize.page_size(fallback_page_size: 4096) @logger = Logger.new($stdout) @pid_provider = Process.method(:pid) @multiprocess_files_dir = ENV.fetch('prometheus_multiproc_dir') do Dir.mktmpdir("prometheus-mmap") end @enable_protobuf = false end end end end
Version data entries
8 entries across 8 versions & 1 rubygems