Skip to content
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

metrics: report: long or many node names render badly in legends #287

Open
grahamwhaley opened this issue Dec 4, 2019 · 1 comment
Open

Comments

@grahamwhaley
Copy link

Having long node names, or many nodes or network connections, render very poorly in the pdf report graph legends. The tendency is for them to fall outside the page.
It seems to be a symptom of ggplot2 and possibly knitr page size calculation and rendering.

Examples:

Many net connections

Long node names

Simple solutions such as trying to modify legend.margins etc. are, well, not simple.

There is a relevant discussion in the ggplot Issues over at tidyverse/ggplot2#1502, which pretty much summaries as 'making all legend combos work for all situations is very very hard'.

It would be great if we could find a 'works for all' fix for this, but it seems non trivial.

@askervin
Copy link
Contributor

askervin commented Dec 4, 2019

Brainstorming: as we have only few nodes in scaling clusters, do you think we'd use the role of the node instead of hostname of the node in the report? For instance, if we'd just rename collectd .tar.gz files to m.tar.gz (for master) and w1.tar.gz (for the first worker etc). This would solve long hostname problem. We can include the hostnames to some tables in the PDF.

Long test names (like "pmem-off-1k-run2" in the first figure) can be considered user choice unlike hostnames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants