Sha256: 7240b67115bcccf874c4c34228eb993991c4310d1b3ec1c5267d6e8f834b726f

Contents?: true

Size: 560 Bytes

Versions: 50

Compression:

Stored size: 560 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, :pid_provider

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

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
prometheus-client-mmap-0.9.4 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.9.3 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.9.2 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.9.1 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.9.1.pre.rc.2 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.9.1.pre.rc.1 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.9.0.pre.rc.1 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.9.0 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.10 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.9 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.8 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.7 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.6 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.5 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.4 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.3 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.2 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta45.1 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta44 lib/prometheus/client/configuration.rb
prometheus-client-mmap-0.7.0.beta43 lib/prometheus/client/configuration.rb