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 filerrd_error— Gets latest error messagerrd_fetch— Fetch the data for graph as arrayrrd_first— Gets the timestamp of the first sample from rrd filerrd_graph— Creates image from a datarrd_info— Gets information about rrd filerrd_last— Gets unix timestamp of the last samplerrd_lastupdate— Gets information about last updated datarrd_restore— Restores the RRD file from XML dumprrd_tune— Tunes some RRD database file header optionsrrd_update— Updates the RRD databaserrd_version— Gets information about underlying rrdtool libraryrrd_xport— Exports the information about RRD databaserrdc_disconnect— Close any outstanding connection to rrd caching daemon
클래스 참조
RRDCreator— The RRDCreator classRRDCreator::addArchive— Adds RRA - archive of data values for each data sourceRRDCreator::addDataSource— Adds data source definition for RRD databaseRRDCreator::__construct— Creates new RRDCreator instanceRRDCreator::save— Saves the RRD database to a fileRRDGraph— The RRDGraph classRRDGraph::__construct— Creates new RRDGraph instanceRRDGraph::save— Saves the result of query into imageRRDGraph::saveVerbose— Saves the RRD database query into image and returns the verbose information about generated graphRRDGraph::setOptions— Sets the options for rrd graph exportRRDUpdater— The RRDUpdater classRRDUpdater::__construct— Creates new RRDUpdater instanceRRDUpdater::update— Update the RRD database file
더 알아보기
- 네트워크 트래픽이나 시스템 메트릭처럼 주기적으로 쌓이는 시계열 데이터를 저장하고 그래프로 보여줄 때 유용해요. MRTG 계열 도구와도 연관이 깊어요.