2 #define NETDATA_RRD_H 1
5 #define UPDATE_EVERY_MAX 3600
7 #define RRD_DEFAULT_HISTORY_ENTRIES 3600
8 #define RRD_HISTORY_ENTRIES_MAX (86400*10)
10 extern int default_rrd_update_every;
11 extern int default_rrd_history_entries;
13 #define RRD_ID_LENGTH_MAX 200
15 #define RRDSET_MAGIC "NETDATA RRD SET FILE V019"
16 #define RRDDIMENSION_MAGIC "NETDATA RRD DIMENSION FILE V019"
18 typedef long long total_number;
19 #define TOTAL_NUMBER_FORMAT "%lld"
21 // ----------------------------------------------------------------------------
24 typedef enum rrdset_type {
27 RRDSET_TYPE_STACKED = 2
30 #define RRDSET_TYPE_LINE_NAME "line"
31 #define RRDSET_TYPE_AREA_NAME "area"
32 #define RRDSET_TYPE_STACKED_NAME "stacked"
34 RRDSET_TYPE rrdset_type_id(const char *name);
35 const char *rrdset_type_name(RRDSET_TYPE chart_type);
38 // ----------------------------------------------------------------------------
41 typedef enum rrd_memory_mode {
42 RRD_MEMORY_MODE_NONE = 0,
43 RRD_MEMORY_MODE_RAM = 1,
44 RRD_MEMORY_MODE_MAP = 2,
45 RRD_MEMORY_MODE_SAVE = 3
48 #define RRD_MEMORY_MODE_NONE_NAME "none"
49 #define RRD_MEMORY_MODE_RAM_NAME "ram"
50 #define RRD_MEMORY_MODE_MAP_NAME "map"
51 #define RRD_MEMORY_MODE_SAVE_NAME "save"
53 extern RRD_MEMORY_MODE default_rrd_memory_mode;
55 extern const char *rrd_memory_mode_name(RRD_MEMORY_MODE id);
56 extern RRD_MEMORY_MODE rrd_memory_mode_id(const char *name);
59 // ----------------------------------------------------------------------------
62 typedef enum rrd_algorithm {
63 RRD_ALGORITHM_ABSOLUTE = 0,
64 RRD_ALGORITHM_INCREMENTAL = 1,
65 RRD_ALGORITHM_PCENT_OVER_DIFF_TOTAL = 2,
66 RRD_ALGORITHM_PCENT_OVER_ROW_TOTAL = 3
69 #define RRD_ALGORITHM_ABSOLUTE_NAME "absolute"
70 #define RRD_ALGORITHM_INCREMENTAL_NAME "incremental"
71 #define RRD_ALGORITHM_PCENT_OVER_DIFF_TOTAL_NAME "percentage-of-incremental-row"
72 #define RRD_ALGORITHM_PCENT_OVER_ROW_TOTAL_NAME "percentage-of-absolute-row"
74 extern RRD_ALGORITHM rrd_algorithm_id(const char *name);
75 extern const char *rrd_algorithm_name(RRD_ALGORITHM algorithm);
77 // ----------------------------------------------------------------------------
88 avl_tree_lock variables_root_index;
90 typedef struct rrdfamily RRDFAMILY;
93 // ----------------------------------------------------------------------------
95 // use this for configuration flags, not for state control
96 // flags are set/unset in a manner that is not thread safe
97 // and may lead to missing information.
99 typedef enum rrddim_flags {
100 RRDDIM_FLAG_HIDDEN = 1 << 0, // this dimension will not be offered to callers
101 RRDDIM_FLAG_DONT_DETECT_RESETS_OR_OVERFLOWS = 1 << 1 // do not offer RESET or OVERFLOW info to callers
104 #define rrddim_flag_check(rd, flag) ((rd)->flags & flag)
105 #define rrddim_flag_set(rd, flag) (rd)->flags |= flag
106 #define rrddim_flag_clear(rd, flag) (rd)->flags &= ~flag
109 // ----------------------------------------------------------------------------
110 // RRD DIMENSION - this is a metric
113 // ------------------------------------------------------------------------
114 // binary indexing structures
116 avl avl; // the binary index - this has to be first member!
118 // ------------------------------------------------------------------------
119 // the dimension definition
121 const char *id; // the id of this dimension (for internal identification)
122 const char *name; // the name of this dimension (as presented to user)
123 // this is a pointer to the config structure
124 // since the config always has a higher priority
125 // (the user overwrites the name of the charts)
126 // DO NOT FREE THIS - IT IS ALLOCATED IN CONFIG
128 RRD_ALGORITHM algorithm; // the algorithm that is applied to add new collected values
129 RRD_MEMORY_MODE rrd_memory_mode; // the memory mode for this dimension
131 collected_number multiplier; // the multiplier of the collected values
132 collected_number divisor; // the divider of the collected values
134 uint32_t flags; // configuration flags for the dimension
136 // ------------------------------------------------------------------------
137 // members for temporary data we need for calculations
139 uint32_t hash; // a simple hash of the id, to speed up searching / indexing
140 // instead of strcmp() every item in the binary index
141 // we first compare the hashes
143 uint32_t hash_name; // a simple hash of the name
145 char *cache_filename; // the filename we load/save from/to this set
147 size_t collections_counter; // the number of times we added values to this rrdim
150 int updated:1; // 1 when the dimension has been updated since the last processing
151 int exposed:1; // 1 when set what have sent this dimension to the central netdata
153 struct timeval last_collected_time; // when was this dimension last updated
154 // this is actual date time we updated the last_collected_value
155 // THIS IS DIFFERENT FROM THE SAME MEMBER OF RRDSET
157 calculated_number calculated_value; // the current calculated value, after applying the algorithm - resets to zero after being used
158 calculated_number last_calculated_value; // the last calculated value processed
160 calculated_number last_stored_value; // the last value as stored in the database (after interpolation)
162 collected_number collected_value; // the current value, as collected - resets to 0 after being used
163 collected_number last_collected_value; // the last value that was collected, after being processed
165 // the *_volume members are used to calculate the accuracy of the rounding done by the
166 // storage number - they are printed to debug.log when debug is enabled for a set.
167 calculated_number collected_volume; // the sum of all collected values so far
168 calculated_number stored_volume; // the sum of all stored values so far
170 struct rrddim *next; // linking of dimensions within the same data set
171 struct rrdset *rrdset;
173 // ------------------------------------------------------------------------
174 // members for checking the data when loading from disk
176 long entries; // how many entries this dimension has in ram
177 // this is the same to the entries of the data set
178 // we set it here, to check the data when we load it from disk.
180 int update_every; // every how many seconds is this updated
182 size_t memsize; // the memory allocated for this dimension
184 char magic[sizeof(RRDDIMENSION_MAGIC) + 1]; // a string to be saved, used to identify our data file
186 struct rrddimvar *variables;
188 // ------------------------------------------------------------------------
189 // the values stored in this dimension, using our floating point numbers
191 storage_number values[]; // the array of values - THIS HAS TO BE THE LAST MEMBER
193 typedef struct rrddim RRDDIM;
195 // ----------------------------------------------------------------------------
196 // these loop macros make sure the linked list is accessed with the right lock
198 #define rrddim_foreach_read(rd, st) \
199 for(rd = st->dimensions, rrdset_check_rdlock(st); rd ; rd = rd->next)
201 #define rrddim_foreach_write(rd, st) \
202 for(rd = st->dimensions, rrdset_check_wrlock(st); rd ; rd = rd->next)
205 // ----------------------------------------------------------------------------
206 // RRDSET - this is a chart
208 // use this for configuration flags, not for state control
209 // flags are set/unset in a manner that is not thread safe
210 // and may lead to missing information.
212 typedef enum rrdset_flags {
213 RRDSET_FLAG_ENABLED = 1 << 0, // enables or disables a chart
214 RRDSET_FLAG_DETAIL = 1 << 1, // if set, the data set should be considered as a detail of another
215 // (the master data set should be the one that has the same family and is not detail)
216 RRDSET_FLAG_DEBUG = 1 << 2 // enables or disables debugging for a chart
219 #define rrdset_flag_check(st, flag) ((st)->flags & flag)
220 #define rrdset_flag_set(st, flag) (st)->flags |= flag
221 #define rrdset_flag_clear(st, flag) (st)->flags &= ~flag
224 // ------------------------------------------------------------------------
225 // binary indexing structures
227 avl avl; // the index, with key the id - this has to be first!
228 avl avlname; // the index, with key the name
230 // ------------------------------------------------------------------------
231 // the set configuration
233 char id[RRD_ID_LENGTH_MAX + 1]; // id of the data set
235 const char *name; // the name of this dimension (as presented to user)
236 // this is a pointer to the config structure
237 // since the config always has a higher priority
238 // (the user overwrites the name of the charts)
240 char *config_section; // the config section for the chart
242 char *type; // the type of graph RRD_TYPE_* (a category, for determining graphing options)
243 char *family; // grouping sets under the same family
244 char *title; // title shown to user
245 char *units; // units of measurement
247 char *context; // the template of this data set
248 uint32_t hash_context;
250 RRDSET_TYPE chart_type;
252 int update_every; // every how many seconds is this updated?
254 long entries; // total number of entries in the data set
256 long current_entry; // the entry that is currently being updated
257 // it goes around in a round-robin fashion
259 uint32_t flags; // configuration flags
261 int gap_when_lost_iterations_above; // after how many lost iterations a gap should be stored
262 // netdata will interpolate values for gaps lower than this
267 // ------------------------------------------------------------------------
268 // members for temporary data we need for calculations
270 RRD_MEMORY_MODE rrd_memory_mode; // if set to 1, this is memory mapped
272 char *cache_dir; // the directory to store dimensions
273 char cache_filename[FILENAME_MAX+1]; // the filename to store this set
275 pthread_rwlock_t rrdset_rwlock; // protects dimensions linked list
277 size_t counter; // the number of times we added values to this database
278 size_t counter_done; // the number of times rrdset_done() has been called
281 uint32_t hash; // a simple hash on the id, to speed up searching
282 // we first compare hashes, and only if the hashes are equal we do string comparisons
284 uint32_t hash_name; // a simple hash on the name
286 usec_t usec_since_last_update; // the time in microseconds since the last collection of data
288 struct timeval last_updated; // when this data set was last updated (updated every time the rrd_stats_done() function)
289 struct timeval last_collected_time; // when did this data set last collected values
291 total_number collected_total; // used internally to calculate percentages
292 total_number last_collected_total; // used internally to calculate percentages
294 RRDFAMILY *rrdfamily;
295 struct rrdhost *rrdhost;
297 struct rrdset *next; // linking of rrdsets
299 // ------------------------------------------------------------------------
302 calculated_number green;
303 calculated_number red;
305 avl_tree_lock variables_root_index;
306 RRDSETVAR *variables;
309 // ------------------------------------------------------------------------
310 // members for checking the data when loading from disk
312 unsigned long memsize; // how much mem we have allocated for this (without dimensions)
314 char magic[sizeof(RRDSET_MAGIC) + 1]; // our magic
316 // ------------------------------------------------------------------------
319 avl_tree_lock dimensions_index; // the root of the dimensions index
320 RRDDIM *dimensions; // the actual data for every dimension
323 typedef struct rrdset RRDSET;
325 #define rrdset_rdlock(st) pthread_rwlock_rdlock(&((st)->rrdset_rwlock))
326 #define rrdset_wrlock(st) pthread_rwlock_wrlock(&((st)->rrdset_rwlock))
327 #define rrdset_unlock(st) pthread_rwlock_unlock(&((st)->rrdset_rwlock))
329 // ----------------------------------------------------------------------------
330 // these loop macros make sure the linked list is accessed with the right lock
332 #define rrdset_foreach_read(st, host) \
333 for(st = host->rrdset_root, rrdhost_check_rdlock(host); st ; st = st->next)
335 #define rrdset_foreach_write(st, host) \
336 for(st = host->rrdset_root, rrdhost_check_wrlock(host); st ; st = st->next)
339 // ----------------------------------------------------------------------------
343 avl avl; // the index of hosts
345 // ------------------------------------------------------------------------
348 char *hostname; // the hostname of this host
349 uint32_t hash_hostname; // the hostname hash
351 char machine_guid[GUID_LEN + 1]; // the unique ID of this host
352 uint32_t hash_machine_guid; // the hash of the unique ID
354 char *os; // the O/S type of the host
355 int rrd_update_every; // the update frequency of the host
356 int rrd_history_entries; // the number of history entries for the host's charts
357 RRD_MEMORY_MODE rrd_memory_mode; // the memory more for the charts of this host
359 char *cache_dir; // the directory to save RRD cache files
360 char *varlib_dir; // the directory to save health log
363 // ------------------------------------------------------------------------
364 // streaming of data to remote hosts - rrdpush
366 int rrdpush_enabled:1; // 1 when this host sends metrics to another netdata
367 char *rrdpush_destination; // where to send metrics to
368 char *rrdpush_api_key; // the api key at the receiving netdata
369 volatile int rrdpush_connected:1; // 1 when the sender is ready to push metrics
370 volatile int rrdpush_spawn:1; // 1 when the sender thread has been spawn
371 volatile int rrdpush_error_shown:1; // 1 when we have logged a communication error
372 int rrdpush_socket; // the fd of the socket to the remote host, or -1
373 pthread_t rrdpush_thread; // the sender thread
374 pthread_mutex_t rrdpush_mutex; // exclusive access to rrdpush_buffer
375 int rrdpush_pipe[2]; // collector to sender thread communication
376 BUFFER *rrdpush_buffer; // collector fills it, sender sends them
379 // ------------------------------------------------------------------------
380 // streaming of data from remote hosts - rrdpush
382 volatile size_t connected_senders; // when remote hosts are streaming to this
383 // host, this is the counter of connected clients
385 time_t senders_disconnected_time; // the time the last sender was disconnected
387 // ------------------------------------------------------------------------
388 // health monitoring options
390 int health_enabled:1; // 1 when this host has health enabled
391 time_t health_delay_up_to; // a timestamp to delay alarms processing up to
392 char *health_default_exec; // the full path of the alarms notifications program
393 char *health_default_recipient; // the default recipient for all alarms
394 char *health_log_filename; // the alarms event log filename
395 size_t health_log_entries_written; // the number of alarm events writtern to the alarms event log
396 FILE *health_log_fp; // the FILE pointer to the open alarms event log file
398 // all RRDCALCs are primarily allocated and linked here
399 // RRDCALCs may be linked to charts at any point
400 // (charts may or may not exist when these are loaded)
403 ALARM_LOG health_log; // alarms historical events (event log)
405 // templates of alarms
406 // these are used to create alarms when charts
407 // are created or renamed, that match them
408 RRDCALCTEMPLATE *templates;
411 // ------------------------------------------------------------------------
412 // the charts of the host
414 RRDSET *rrdset_root; // the host charts
417 // ------------------------------------------------------------------------
420 pthread_rwlock_t rrdhost_rwlock; // lock for this RRDHOST (protects rrdset_root linked list)
422 avl_tree_lock rrdset_root_index; // the host's charts index (by id)
423 avl_tree_lock rrdset_root_index_name; // the host's charts index (by name)
425 avl_tree_lock rrdfamily_root_index; // the host's chart families index
426 avl_tree_lock variables_root_index; // the host's chart variables index
428 struct rrdhost *next;
430 typedef struct rrdhost RRDHOST;
431 extern RRDHOST *localhost;
433 #define rrdhost_rdlock(h) pthread_rwlock_rdlock(&((h)->rrdhost_rwlock))
434 #define rrdhost_wrlock(h) pthread_rwlock_wrlock(&((h)->rrdhost_rwlock))
435 #define rrdhost_unlock(h) pthread_rwlock_unlock(&((h)->rrdhost_rwlock))
437 // ----------------------------------------------------------------------------
438 // these loop macros make sure the linked list is accessed with the right lock
440 #define rrdhost_foreach_read(var) \
441 for(var = localhost, rrd_check_rdlock(); var ; var = var->next)
443 #define rrdhost_foreach_write(var) \
444 for(var = localhost, rrd_check_wrlock(); var ; var = var->next)
447 // ----------------------------------------------------------------------------
448 // global lock for all RRDHOSTs
450 extern pthread_rwlock_t rrd_rwlock;
451 #define rrd_rdlock() pthread_rwlock_rdlock(&rrd_rwlock)
452 #define rrd_wrlock() pthread_rwlock_wrlock(&rrd_rwlock)
453 #define rrd_unlock() pthread_rwlock_unlock(&rrd_rwlock)
455 // ----------------------------------------------------------------------------
457 extern time_t rrdhost_free_orphan_time;
459 extern void rrd_init(char *hostname);
461 extern RRDHOST *rrdhost_find_guid(const char *guid, uint32_t hash);
462 extern RRDHOST *rrdhost_find_or_create(
468 , RRD_MEMORY_MODE mode
470 , int rrdpush_enabled
471 , char *rrdpush_destination
472 , char *rrdpush_api_key
475 #ifdef NETDATA_INTERNAL_CHECKS
476 extern void rrdhost_check_wrlock_int(RRDHOST *host, const char *file, const char *function, const unsigned long line);
477 extern void rrdhost_check_rdlock_int(RRDHOST *host, const char *file, const char *function, const unsigned long line);
478 extern void rrdset_check_rdlock_int(RRDSET *st, const char *file, const char *function, const unsigned long line);
479 extern void rrdset_check_wrlock_int(RRDSET *st, const char *file, const char *function, const unsigned long line);
480 extern void rrd_check_rdlock_int(const char *file, const char *function, const unsigned long line);
481 extern void rrd_check_wrlock_int(const char *file, const char *function, const unsigned long line);
483 #define rrdhost_check_rdlock(host) rrdhost_check_rdlock_int(host, __FILE__, __FUNCTION__, __LINE__)
484 #define rrdhost_check_wrlock(host) rrdhost_check_wrlock_int(host, __FILE__, __FUNCTION__, __LINE__)
485 #define rrdset_check_rdlock(st) rrdset_check_rdlock_int(st, __FILE__, __FUNCTION__, __LINE__)
486 #define rrdset_check_wrlock(st) rrdset_check_wrlock_int(st, __FILE__, __FUNCTION__, __LINE__)
487 #define rrd_check_rdlock() rrd_check_rdlock_int(__FILE__, __FUNCTION__, __LINE__)
488 #define rrd_check_wrlock() rrd_check_wrlock_int(__FILE__, __FUNCTION__, __LINE__)
491 #define rrdhost_check_rdlock(host) (void)0
492 #define rrdhost_check_wrlock(host) (void)0
493 #define rrdset_check_rdlock(host) (void)0
494 #define rrdset_check_wrlock(host) (void)0
495 #define rrd_check_rdlock() (void)0
496 #define rrd_check_wrlock() (void)0
499 // ----------------------------------------------------------------------------
502 extern void rrdset_set_name(RRDSET *st, const char *name);
504 extern RRDSET *rrdset_create(RRDHOST *host
509 , const char *context
514 , RRDSET_TYPE chart_type);
516 #define rrdset_create_localhost(type, id, name, family, context, title, units, priority, update_every, chart_type) rrdset_create(localhost, type, id, name, family, context, title, units, priority, update_every, chart_type)
518 extern void rrdhost_free_all(void);
519 extern void rrdhost_save_all(void);
521 extern void rrdhost_cleanup_remote_stale(RRDHOST *protected);
522 extern void rrdhost_free(RRDHOST *host);
523 extern void rrdhost_save(RRDHOST *host);
525 extern RRDSET *rrdset_find(RRDHOST *host, const char *id);
526 #define rrdset_find_localhost(id) rrdset_find(localhost, id)
528 extern RRDSET *rrdset_find_bytype(RRDHOST *host, const char *type, const char *id);
529 #define rrdset_find_bytype_localhost(type, id) rrdset_find_bytype(localhost, type, id)
531 extern RRDSET *rrdset_find_byname(RRDHOST *host, const char *name);
532 #define rrdset_find_byname_localhost(name) rrdset_find_byname(localhost, name)
534 extern void rrdset_next_usec_unfiltered(RRDSET *st, usec_t microseconds);
535 extern void rrdset_next_usec(RRDSET *st, usec_t microseconds);
536 #define rrdset_next(st) rrdset_next_usec(st, 0ULL)
538 extern void rrdset_done(RRDSET *st);
540 // get the total duration in seconds of the round robin database
541 #define rrdset_duration(st) ((time_t)( (((st)->counter >= ((unsigned long)(st)->entries))?(unsigned long)(st)->entries:(st)->counter) * (st)->update_every ))
543 // get the timestamp of the last entry in the round robin database
544 #define rrdset_last_entry_t(st) ((time_t)(((st)->last_updated.tv_sec)))
546 // get the timestamp of first entry in the round robin database
547 #define rrdset_first_entry_t(st) ((time_t)(rrdset_last_entry_t(st) - rrdset_duration(st)))
549 // get the last slot updated in the round robin database
550 #define rrdset_last_slot(st) ((unsigned long)(((st)->current_entry == 0) ? (st)->entries - 1 : (st)->current_entry - 1))
552 // get the first / oldest slot updated in the round robin database
553 #define rrdset_first_slot(st) ((unsigned long)( (((st)->counter >= ((unsigned long)(st)->entries)) ? (unsigned long)( ((unsigned long)(st)->current_entry > 0) ? ((unsigned long)(st)->current_entry) : ((unsigned long)(st)->entries) ) - 1 : 0) ))
555 // get the slot of the round robin database, for the given timestamp (t)
556 // it always returns a valid slot, although may not be for the time requested if the time is outside the round robin database
557 #define rrdset_time2slot(st, t) ( \
558 ( (time_t)(t) >= rrdset_last_entry_t(st)) ? ( rrdset_last_slot(st) ) : \
559 ( ((time_t)(t) <= rrdset_first_entry_t(st)) ? rrdset_first_slot(st) : \
560 ( (rrdset_last_slot(st) >= (unsigned long)((rrdset_last_entry_t(st) - (time_t)(t)) / (unsigned long)((st)->update_every)) ) ? \
561 (rrdset_last_slot(st) - (unsigned long)((rrdset_last_entry_t(st) - (time_t)(t)) / (unsigned long)((st)->update_every)) ) : \
562 (rrdset_last_slot(st) - (unsigned long)((rrdset_last_entry_t(st) - (time_t)(t)) / (unsigned long)((st)->update_every)) + (unsigned long)(st)->entries ) \
565 // get the timestamp of a specific slot in the round robin database
566 #define rrdset_slot2time(st, slot) ( rrdset_last_entry_t(st) - \
567 ((unsigned long)(st)->update_every * ( \
568 ( (unsigned long)(slot) > rrdset_last_slot(st)) ? \
569 ( (rrdset_last_slot(st) - (unsigned long)(slot) + (unsigned long)(st)->entries) ) : \
570 ( (rrdset_last_slot(st) - (unsigned long)(slot)) )) \
573 // ----------------------------------------------------------------------------
574 // RRD DIMENSION functions
576 extern RRDDIM *rrddim_add(RRDSET *st, const char *id, const char *name, collected_number multiplier, collected_number divisor, RRD_ALGORITHM algorithm);
578 extern void rrddim_set_name(RRDSET *st, RRDDIM *rd, const char *name);
579 extern RRDDIM *rrddim_find(RRDSET *st, const char *id);
581 extern int rrddim_hide(RRDSET *st, const char *id);
582 extern int rrddim_unhide(RRDSET *st, const char *id);
584 extern collected_number rrddim_set_by_pointer(RRDSET *st, RRDDIM *rd, collected_number value);
585 extern collected_number rrddim_set(RRDSET *st, const char *id, collected_number value);
587 extern long align_entries_to_pagesize(RRD_MEMORY_MODE mode, long entries);
590 // ----------------------------------------------------------------------------
591 // RRD internal functions
593 #ifdef NETDATA_RRD_INTERNALS
595 extern void rrdset_free(RRDSET *st);
596 extern avl_tree_lock rrdhost_root_index;
598 extern char *rrdset_strncpyz_name(char *to, const char *from, size_t length);
599 extern char *rrdset_cache_dir(RRDHOST *host, const char *id, const char *config_section);
601 extern void rrdset_reset(RRDSET *st);
603 extern void rrddim_free(RRDSET *st, RRDDIM *rd);
605 extern int rrddim_compare(void* a, void* b);
606 extern int rrdset_compare(void* a, void* b);
607 extern int rrdset_compare_name(void* a, void* b);
608 extern int rrdfamily_compare(void *a, void *b);
610 extern RRDFAMILY *rrdfamily_create(RRDHOST *host, const char *id);
611 extern void rrdfamily_free(RRDHOST *host, RRDFAMILY *rc);
613 #define rrdset_index_add(host, st) (RRDSET *)avl_insert_lock(&((host)->rrdset_root_index), (avl *)(st))
614 #define rrdset_index_del(host, st) (RRDSET *)avl_remove_lock(&((host)->rrdset_root_index), (avl *)(st))
615 extern RRDSET *rrdset_index_del_name(RRDHOST *host, RRDSET *st);
617 #endif /* NETDATA_RRD_INTERNALS */
620 #endif /* NETDATA_RRD_H */