Sha256: 1beeb4aca0d9c401f3cc328c6b147fff244229947c78cd5e3c1e519994b751e5
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 Bytes
Contents
require 'prometheus/client/registry' require 'prometheus/client/mmaped_value' require 'logger' require 'tmpdir' module Prometheus module Client class Configuration attr_accessor :value_class, :multiprocess_files_dir, :initial_mmap_file_size, :logger, :pid_provider def initialize @value_class = ::Prometheus::Client::MmapedValue @initial_mmap_file_size = 4 * 1024 @pid_provider = Process.method(:pid) @multiprocess_files_dir = ENV.fetch('prometheus_multiproc_dir') do Dir.mktmpdir("prometheus-mmap") end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prometheus-client-mmap-0.9.7 | lib/prometheus/client/configuration.rb |