read_rrd: Imports data from an RRD database

View source: R/read_rrd.R

read_rrdR Documentation

Imports data from an RRD database

Description

Reads the metadata in the RRD and adjusts the parameters accordingly in order to expose all RRAs in their entirety.

Usage

read_rrd(filename)

Arguments

filename

File name

Value

Returns a named list of data.frames. Each data frame corresponds to an RRA (see read_rra()). The list has names constructed as "consolidation function" + "step" - e.g. "AVERAGE15".

References

https://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html

See Also

Other rrd functions: describe_rrd(), read_rra()

Examples

rrd_cpu_0 <- system.file("extdata/cpu-0.rrd", package = "rrd")

describe_rrd(rrd_cpu_0)

cpu <- read_rrd(rrd_cpu_0)
names(cpu)
head(cpu[[1]])
tail(cpu[[1]])

tail(
  cpu$AVERAGE60$sys
)

rrd documentation built on March 18, 2022, 5:51 p.m.