Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
#define MAX_FIELDS 64
-typedef struct collecty_rrd_schema {
+typedef struct collecty_rrd_ds {
// Field
const char* field;
// Minimum/Maxmimum Value
int min;
int max;
-} collecty_rrd_schema;
+} collecty_rrd_ds;
typedef struct collecty_module_methods {
const char* name;
// RRD Schema
- collecty_rrd_schema rrd_schema[MAX_FIELDS];
+ collecty_rrd_ds rrd_dss[MAX_FIELDS];
// Init
int (*init)(collecty_ctx* ctx);
const collecty_module_methods loadavg_module = {
.name = "loadavg",
- // RRD Schema
- .rrd_schema = {
+ // RRD Data Sources
+ .rrd_dss = {
{ "load1", "GAUGE", 0, -1, },
{ "load5", "GAUGE", 0, -1, },
{ "load15", "GAUGE", 0, -1, },