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.2.6 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.5 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.4 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.3 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.2 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.2.rc lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.1 lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.1.rc lib/one_apm/collector/containers/utilization_data.rb
oneapm_rpm-1.2.0 lib/one_apm/collector/containers/utilization_data.rb