mirror of
https://github.com/netdata/netdata.git
synced 2025-05-02 08:20:10 +00:00
Use live charts to count the total number of dimensions. (#12504)
This commit is contained in:
parent
b0e6c0700e
commit
c7b45c26b6
1 changed files with 9 additions and 5 deletions
|
@ -416,12 +416,16 @@ void analytics_metrics(void)
|
||||||
rrdset_foreach_read(st, localhost)
|
rrdset_foreach_read(st, localhost)
|
||||||
{
|
{
|
||||||
rrdset_rdlock(st);
|
rrdset_rdlock(st);
|
||||||
rrddim_foreach_read(rd, st)
|
|
||||||
{
|
if (rrdset_is_available_for_viewers(st)) {
|
||||||
if (rrddim_flag_check(rd, RRDDIM_FLAG_HIDDEN) || rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE))
|
rrddim_foreach_read(rd, st)
|
||||||
continue;
|
{
|
||||||
dimensions++;
|
if (rrddim_flag_check(rd, RRDDIM_FLAG_HIDDEN) || rrddim_flag_check(rd, RRDDIM_FLAG_OBSOLETE))
|
||||||
|
continue;
|
||||||
|
dimensions++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rrdset_unlock(st);
|
rrdset_unlock(st);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue