mirror of
https://github.com/netdata/netdata.git
synced 2025-05-13 21:22:08 +00:00

* Implemented collector metadata logging * Added persistent GUIDs for charts and dimensions * Added metadata log replay and automatic compaction * Added detection of charts with no active collector (archived) * Added new endpoint to report archived charts via `/api/v1/archivedcharts` * Added support for collector metadata update Co-authored-by: Markos Fountoulakis <44345837+mfundul@users.noreply.github.com>
38 lines
1.7 KiB
C
38 lines
1.7 KiB
C
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#ifndef NETDATA_PLUGINSD_PARSER_H
|
|
#define NETDATA_PLUGINSD_PARSER_H
|
|
|
|
#include "../../parser/parser.h"
|
|
|
|
|
|
typedef struct parser_user_object {
|
|
PARSER *parser;
|
|
RRDSET *st;
|
|
RRDHOST *host;
|
|
void *opaque;
|
|
struct plugind *cd;
|
|
int trust_durations;
|
|
struct label *new_labels;
|
|
size_t count;
|
|
int enabled;
|
|
void *private; // the user can set this for private use
|
|
} PARSER_USER_OBJECT;
|
|
|
|
extern PARSER_RC pluginsd_set_action(void *user, RRDSET *st, RRDDIM *rd, long long int value);
|
|
extern PARSER_RC pluginsd_flush_action(void *user, RRDSET *st);
|
|
extern PARSER_RC pluginsd_begin_action(void *user, RRDSET *st, usec_t microseconds, int trust_durations);
|
|
extern PARSER_RC pluginsd_end_action(void *user, RRDSET *st);
|
|
extern PARSER_RC pluginsd_chart_action(void *user, char *type, char *id, char *name, char *family, char *context,
|
|
char *title, char *units, char *plugin, char *module, int priority,
|
|
int update_every, RRDSET_TYPE chart_type, char *options);
|
|
extern PARSER_RC pluginsd_disable_action(void *user);
|
|
extern PARSER_RC pluginsd_variable_action(void *user, RRDHOST *host, RRDSET *st, char *name, int global,
|
|
calculated_number value);
|
|
extern PARSER_RC pluginsd_dimension_action(void *user, RRDSET *st, char *id, char *name, char *algorithm,
|
|
long multiplier, long divisor, char *options, RRD_ALGORITHM algorithm_type);
|
|
extern PARSER_RC pluginsd_label_action(void *user, char *key, char *value, LABEL_SOURCE source);
|
|
extern PARSER_RC pluginsd_overwrite_action(void *user, RRDHOST *host, struct label *new_labels);
|
|
|
|
|
|
#endif //NETDATA_PLUGINSD_PARSER_H
|