StackDriver Ruby客户端将自定义指标发送到ruby客户端。用法require 'stackdriver' # One time setup api_key = "foo" StackDriver . init 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" # Send multiple metric values with instance_id Stackdriver