diff options
author | Vladimir Kobal <vlad@prokk.net> | 2021-03-18 21:53:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 21:53:32 +0200 |
commit | 477f26fd7ba73e2c60a71d0240df111e616b294a (patch) | |
tree | 317a14b1b50d292406a91ccf60a5cd41e12dc1e1 /exporting | |
parent | e2a845cce7174d852b5ddc1b6a4a82923b9a34cf (diff) |
Don't show alarms for charts without data (#10804)
Diffstat (limited to 'exporting')
-rw-r--r-- | exporting/check_filters.c | 2 | ||||
-rw-r--r-- | exporting/prometheus/prometheus.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/exporting/check_filters.c b/exporting/check_filters.c index cfe0b4ce43..8d70c6f68d 100644 --- a/exporting/check_filters.c +++ b/exporting/check_filters.c @@ -64,7 +64,7 @@ int rrdset_is_exportable(struct instance *instance, RRDSET *st) } } - if(unlikely(!rrdset_is_available_for_backends(st))) { + if(unlikely(!rrdset_is_available_for_exporting_and_alarms(st))) { debug(D_BACKEND, "BACKEND: not sending chart '%s' of host '%s', because it is not available for backends.", st->id, host->hostname); return 0; } diff --git a/exporting/prometheus/prometheus.c b/exporting/prometheus/prometheus.c index ab919acd81..c10d94b90a 100644 --- a/exporting/prometheus/prometheus.c +++ b/exporting/prometheus/prometheus.c @@ -37,7 +37,7 @@ inline int can_send_rrdset(struct instance *instance, RRDSET *st) } } - if (unlikely(!rrdset_is_available_for_backends(st))) { + if (unlikely(!rrdset_is_available_for_exporting_and_alarms(st))) { debug( D_BACKEND, "EXPORTING: not sending chart '%s' of host '%s', because it is not available for exporting.", |