(Translated by https://www.hiragana.jp/)
GitHub - dallasmarlow/tsd_client
Skip to content

dallasmarlow/tsd_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

tsd = TSD::Client.new host: '0.0.0.0',
                      port: 4242,
                      timeout: 120

# query
tsd.query metric: 'cpu',
          start:  '1h-ago'

tsd.query metric: 'load',
          start:  Time.now - 7200,
          end:    Time.now - 3600,
          downsample: '10m-avg'

tsd.query metric: 'memcached',
          start:  1363970875,
          rate:   true,
          tags:   {
            host: Socket.gethostname,
            memcached_command: 'get',
          }

# put
tsd.put   metric: 'temperature', value: 72

tsd.put   metric: 'request',
          value:  0.4323,
          time:   Time.at(1363970890),
          tags:   {
            request_id:     'latency',
            application_id: 'alpha',
          }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages