Interfacing R and Datadog
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
man
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LICENSE
Makefile
NAMESPACE
README.md

README.md

rdog

Query Datadog directly from R.

Getting started

install.packages("devtools")
devtools::install_github("datadog/rdog")
require(rdog)
api <- 'abc'
app <- 'def'

to_t <- as.integer(Sys.time())
from_t <- to_t - 3600

# Get an xts object to keep timestamps
results <- dog_query(api, app, 'avg:system.cpu.idle{*}', from_t=from_t, to_t=to_t)
plot(results)

# Get a data frame
results <- dog_query(api, app, 'avg:system.cpu.idle{*}', from_t=from_t, to_t=to_t, TRUE)
plot(results)