Sha256: efb6f715e0b07eaad3b923674c4aa9e0fa700c4061df8e4338c0cc7acc5d112f

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

require 'aws-sdk-cloudwatch'
require 'aws-sdk-ec2'
require 'crack'

module PassengerMetrics
  def self.status
    @status ||= PassengerMetrics::Status.new
  end

  def self.instance_id
    @instance_id ||= metadata_client.get('/latest/meta-data/instance-id')
  end

  def self.metadata_client
    @_metadata_client ||= Aws::EC2Metadata.new
  end
end

require 'passenger-metrics/metrics/base'
require 'passenger-metrics/metrics/queue_length'
require 'passenger-metrics/metrics/process_count'
require 'passenger-metrics/status'
require 'passenger-metrics/cloudwatch'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
passenger-metrics-0.0.7 lib/passenger-metrics.rb