README.md

graphitr

This package makes it easy to retrieve metrics from Graphite servers by using it's render API for raw data.

Install

Directly from Github

devtools::install_github('teekaay/graphitr')

or locally after cloning

make install

Usage

library(graphitr)
host <- 'http://graphite.org/'
from <- '-1d'
until <- 'now'
metric <- 'servers.*.cpu_time'
# renders http://graphite.org/render?from=-1d&until=now&target=servers.*.cpu_time&format=csv
query_url <- graphite_render_uri(host, from, until, metric)
# get the metrics as a data frame from Graphite
graphite_df <- graphite_get(host, from, until, metric)
# get the metrics from a CSV file
graphite_df_local <- graphite_get_local('path/to/file.csv')

Developing



teekaay/graphitr documentation built on May 31, 2019, 7:58 a.m.