-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom chart with option nonzero and data-dimensions set #1514
Comments
You are right. |
done! |
Sorry for not checking this earlier, but this change on its own, hasn't done the trick for me. The method The following change fixes that: t-h-e@cf14df5 PS: It seems kind of confusing that in the REST api the option |
ok. I don't see any issues. |
PR #1658 |
well, I found an issue. if all dimensions are zero and the nonzero option is set, then the charts are shown as empty. If am adding code, to detect this, and enable all the zero dimensions if none is nonzero (the way it should work). |
You are right. I never had that case. Thanks. |
…hey are all zero; fixes netdata#1658; fixes netdata#1514
The option nonzero or "NETDATA.options.current.eliminate_zero_dimensions = true;" should remove dimensions that contain only zeros, which works fine if no dimensions are specified.
If data-dimensions is set, then this flag is ignored. https://github.com/firehol/netdata/blob/master/src/rrd2json.c#L630-L636
Doesn't that seem counter-intuitive? If the user wants to show only certain dimensions, but automatically remove nonzero dimensions, that is not possible. But this could actually be done by adding or removing the nonzero flag.
The text was updated successfully, but these errors were encountered: