Sha256: ef3a4fba7ac217926fa5eda93496a5779cc4e0d6cbb977fb1de3947789ac1e7e

Contents?: true

Size: 657 Bytes

Versions: 33

Compression:

Stored size: 657 Bytes

Contents

# encoding: utf-8

module OneApm
  module Collector
    class UtilizationData

      REMOTE_DATA_VALID_CHARS = /^[0-9a-zA-Z_ .\/-]$/.freeze

      def harvest!
        [hostname, container_id, cpu_count, instance_type]
      end

      def merge!(*_); end
      def reset!(*_); end

      def hostname
        OneApm::Agent::Hostname.get
      end

      def container_id
        ::OneApm::Support::SystemInfo.docker_container_id
      end

      def cpu_count
        ::OneApm::Support::SystemInfo.clear_processor_info
        ::OneApm::Support::SystemInfo.num_logical_processors
      end

      def instance_type
        nil
      end

    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
oneapm_rpm-1.3.6 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.5 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.4 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.3 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.2 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.0 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.9 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.9.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.8 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.7 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/collector/containers/utilization_data.rb