Skip to content

egorelik/stackdriver-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StackDriver Ruby Client

A ruby client to send custom metrics to StackDriver.

Usage

require 'stackdriver'

# One time setup
customer_id = 1
api_key = "foo"
StackDriver.init customer_id, api_key

# Send single metric value
StackDriver.send_metric "test_metric", 666, Time.now.to_i

# Send single metric value with instance id
Stackdriver.send_metric "test_metric", 666, Time.now.to_i, "i-12345"

Delete single metric value

Note that the removal will take effect roughly two hours after the request has been sent

StackDriver.delete_metric "test_metric", Time.now.to_i

Software Verification

This gem is signed with rubygems-openpgp. You can verify its integrity by running:

gem install stackdriver --verify

Much more information on signing is available at the rubygems-openpgp Certificate Authority.

Signing key:

pub   2048R/E3B5806F 2010-01-11 [expires: 2014-01-03]
      Key fingerprint = A530 C31C D762 0D26 E2BA  C384 B6F6 FFD0 E3B5 806F
uid                  Grant T. Olson (Personal email) <[email protected]>
uid                  Grant T Olson <[email protected]>
uid                  Grant T. Olson (pikimal) <[email protected]>
sub   2048R/6A8F7CF6 2010-01-11 [expires: 2014-01-03]
sub   2048R/A18A54D6 2010-03-01 [expires: 2014-01-03]
sub   2048R/D53982CE 2010-08-31 [expires: 2014-01-03]

About

ruby client for StackDriver custom metrics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%