diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2020-07-27 12:44:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 12:44:48 +0300 |
commit | b0d42a5e61e610c2ef5a6c277bd5908c9c75b771 (patch) | |
tree | a7a36c56bc02bad8ebec0d4d8104df51eb40de52 /collectors/proc.plugin | |
parent | c236e9fa607cc12872ac06c07e88e43f69fa803e (diff) |
Stop mdstat collector from looking up archived charts. (#9583)
Diffstat (limited to 'collectors/proc.plugin')
-rw-r--r-- | collectors/proc.plugin/proc_mdstat.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/collectors/proc.plugin/proc_mdstat.c b/collectors/proc.plugin/proc_mdstat.c index abfd2ff122..69c809dd7d 100644 --- a/collectors/proc.plugin/proc_mdstat.c +++ b/collectors/proc.plugin/proc_mdstat.c @@ -68,7 +68,7 @@ static inline void make_chart_obsolete(char *name, const char *id_modifier) { if(likely(name && id_modifier)) {
snprintfz(id, 50, "mdstat.%s_%s", name, id_modifier);
- st = rrdset_find_byname_localhost(id);
+ st = rrdset_find_active_byname_localhost(id);
if(likely(st)) rrdset_is_obsolete(st);
}
}
@@ -414,7 +414,7 @@ int do_proc_mdstat(int update_every, usec_t dt) { if(likely(do_disks)) {
snprintfz(id, 50, "%s_disks", raid->name);
- if(unlikely(!raid->st_disks && !(raid->st_disks = rrdset_find_byname_localhost(id)))) {
+ if(unlikely(!raid->st_disks && !(raid->st_disks = rrdset_find_active_byname_localhost(id)))) {
snprintfz(family, 50, "%s", raid->name);
raid->st_disks = rrdset_create_localhost(
@@ -453,7 +453,7 @@ int do_proc_mdstat(int update_every, usec_t dt) { if(likely(do_mismatch)) {
snprintfz(id, 50, "%s_mismatch", raid->name);
- if(unlikely(!raid->st_mismatch_cnt && !(raid->st_mismatch_cnt = rrdset_find_byname_localhost(id)))) {
+ if(unlikely(!raid->st_mismatch_cnt && !(raid->st_mismatch_cnt = rrdset_find_active_byname_localhost(id)))) {
snprintfz(family, 50, "%s", raid->name);
raid->st_mismatch_cnt = rrdset_create_localhost(
@@ -489,7 +489,7 @@ int do_proc_mdstat(int update_every, usec_t dt) { if(likely(do_operations)) {
snprintfz(id, 50, "%s_operation", raid->name);
- if(unlikely(!raid->st_operation && !(raid->st_operation = rrdset_find_byname_localhost(id)))) {
+ if(unlikely(!raid->st_operation && !(raid->st_operation = rrdset_find_active_byname_localhost(id)))) {
snprintfz(family, 50, "%s", raid->name);
raid->st_operation = rrdset_create_localhost(
@@ -532,7 +532,7 @@ int do_proc_mdstat(int update_every, usec_t dt) { snprintfz(id, 50, "%s_finish", raid->name);
- if(unlikely(!raid->st_finish && !(raid->st_finish = rrdset_find_byname_localhost(id)))) {
+ if(unlikely(!raid->st_finish && !(raid->st_finish = rrdset_find_active_byname_localhost(id)))) {
snprintfz(family, 50, "%s", raid->name);
raid->st_finish = rrdset_create_localhost(
@@ -566,7 +566,7 @@ int do_proc_mdstat(int update_every, usec_t dt) { snprintfz(id, 50, "%s_speed", raid->name);
- if(unlikely(!raid->st_speed && !(raid->st_speed = rrdset_find_byname_localhost(id)))) {
+ if(unlikely(!raid->st_speed && !(raid->st_speed = rrdset_find_active_byname_localhost(id)))) {
snprintfz(family, 50, "%s", raid->name);
raid->st_speed = rrdset_create_localhost(
|