Learn R Programming

rrd (version 0.2.4)

read_rrd: 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

Run this code
# NOT RUN {
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
)
# }

Run the code above in your browser using DataLab