Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

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

Open

Description

@grahamwhaley

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.

Activity

  1. askervin commented on Dec 4, 2019

    @askervin
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions