RRDtool

RRDtool (라운드 로빈 데이터베이스 도구)

시계열(시간 순) 데이터를 수집하고 그래프로 그려야 할 때 쓰는 확장이에요. PECL/rrd 확장은 RRDtool C 라이브러리와의 바인딩을 제공해요. RRDtool은 시계열 데이터용 오픈소스 산업 표준, 고성능 데이터 로깅·그래핑 시스템이에요.

출처: RRDtool

본문

소개

PECL/rrd 확장은 RRDtool C 라이브러리와의 바인딩을 제공해요. RRDtool은 시계열 데이터를 위한 오픈소스 업계 표준의 고성능 데이터 로깅·그래핑 시스템이에요. (RRDtool 홈페이지: http://www.mrtg.org/rrdtool/)

데이터를 저장하고(RRD 데이터베이스) 언제든 그 시계열 데이터를 가져와 그래프 이미지로 만들 수 있는 구조예요. 절차적(procedural) API와 객체 지향(OOP) API 두 가지 방식을 모두 제공해요.

함수 참조

RRD Functions

  • rrd_create — Creates rrd database file
  • rrd_error — Gets latest error message
  • rrd_fetch — Fetch the data for graph as array
  • rrd_first — Gets the timestamp of the first sample from rrd file
  • rrd_graph — Creates image from a data
  • rrd_info — Gets information about rrd file
  • rrd_last — Gets unix timestamp of the last sample
  • rrd_lastupdate — Gets information about last updated data
  • rrd_restore — Restores the RRD file from XML dump
  • rrd_tune — Tunes some RRD database file header options
  • rrd_update — Updates the RRD database
  • rrd_version — Gets information about underlying rrdtool library
  • rrd_xport — Exports the information about RRD database
  • rrdc_disconnect — Close any outstanding connection to rrd caching daemon

클래스 참조

  • RRDCreator — The RRDCreator class
  • RRDCreator::addArchive — Adds RRA - archive of data values for each data source
  • RRDCreator::addDataSource — Adds data source definition for RRD database
  • RRDCreator::__construct — Creates new RRDCreator instance
  • RRDCreator::save — Saves the RRD database to a file
  • RRDGraph — The RRDGraph class
  • RRDGraph::__construct — Creates new RRDGraph instance
  • RRDGraph::save — Saves the result of query into image
  • RRDGraph::saveVerbose — Saves the RRD database query into image and returns the verbose information about generated graph
  • RRDGraph::setOptions — Sets the options for rrd graph export
  • RRDUpdater — The RRDUpdater class
  • RRDUpdater::__construct — Creates new RRDUpdater instance
  • RRDUpdater::update — Update the RRD database file

더 알아보기

  • 네트워크 트래픽이나 시스템 메트릭처럼 주기적으로 쌓이는 시계열 데이터를 저장하고 그래프로 보여줄 때 유용해요. MRTG 계열 도구와도 연관이 깊어요.