Briefly describe how to create rrdtool files

Official document link: http://oss.oetiker.ch/rrdtool/doc/rrdcreate.en.html

 

Summary

rrdtool create filename [--start |-b  start time ] [--step |-s  step ] [--no-overwrite ] [DS: ds-name : DST : dst arguments ] [RRA: CF : cf arguments ]

Italic is the value that needs to be modified

 

description

The create function of RRDtool lets you set up new Round Robin Database (RRD ) files. The file is created at its final, full size and filled with *UNKNOWN* data.

The creation function of RRDtool enables you to set up a new Round Robin Database ( RRD ) file. This file is filled with *UNKNOWN*  data when it is created , the structure is unchangeable, and it has a complete list of records.


Parameter description (partial)

DS: ds-name : DST : dst arguments

An RRD database can accept one or more data sources (DS). If you think of RRD as a table in a relational database, then DS is equivalent to a field. If this RRD database has multiple DSs, then multiple DSs are required when creating RRD: ds-name: DST: dst arguments


ds-name: the name of the DS, equivalent to the field name of a table


DST: Data Source Type, DS type, there are five types of GAUGE, COUNTER, DERIVE, ABSOLUTE and COMPUTE

    When DST is GAUGE, COUNTER, DERIVE, ABSOLUTE, the creation format of DS is

        DS: ds-name : GAUGE | COUNTER | DERIVE | ABSOLUTE : heartbeat : min : max

        Heartbeat is the maximum time between two updates (unit: seconds). After the last record is updated, if there is no new data after this time, the value of this field of the current record is set to UNKNOWN.

        min and max are the minimum and maximum values ​​of this field. If the actual value exceeds this range, its value in the RRD database will be set to UNKNOWN. If you know and don't care about the min or max value, you can set it to U.

 

    When DST is COMPUTE, the creation format of DS is

        DS: ds-name : COMPUTE : rpn-expression

 

    For a detailed description of these five DSTs, please refer to http://www.360doc.com/content/07/0302/20/15540_382048.shtml

Guess you like

Origin blog.csdn.net/huzhenwei/article/details/6012845