Sha256: d737701a5bcf2f94e65728a62c8a1922b159302567d87177868e1f30b7d810dc

Contents?: true

Size: 500 Bytes

Versions: 4

Compression:

Stored size: 500 Bytes

Contents

require 'prometheus/client/registry'
require 'prometheus/client/mmaped_value'
require 'logger'

module Prometheus
  module Client
    class Configuration
      attr_accessor :value_class, :multiprocess_files_dir, :initial_mmap_file_size, :logger

      def initialize
        @value_class = ::Prometheus::Client::MmapedValue
        @multiprocess_files_dir = ENV['prometheus_multiproc_dir']
        @initial_mmap_file_size = 4 * 1024
        @logger = Logger.new($stdout)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prometheus-client-mmap-0.7.0.beta12 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta11 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta10 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta9 lib/prometheus/client/configuration.rb