@@ -435,6 +435,7 @@ mem_line_plot <- ggplot() +
435
435
ylab(" System Avail (Gb)" ) +
436
436
scale_y_continuous(labels = comma , sec.axis = sec_axis(~ . / mem_scale , name = " pods" )) +
437
437
ggtitle(" System Memory free" ) +
438
+ theme(legend.position = " bottom" ) +
438
439
theme(axis.text.x = element_text(angle = 90 ))
439
440
440
441
page1 = grid.arrange(
@@ -473,6 +474,7 @@ cpu_line_plot <- ggplot() +
473
474
xlab(" seconds" ) +
474
475
ylab(" System CPU Idle (%)" ) +
475
476
ggtitle(" System CPU usage" ) +
477
+ theme(legend.position = " bottom" ) +
476
478
theme(axis.text.x = element_text(angle = 90 ))
477
479
478
480
page2 = grid.arrange(
@@ -497,6 +499,7 @@ boot_line_plot <- ggplot() +
497
499
xlab(" pods" ) +
498
500
ylab(" Boot time (s)" ) +
499
501
ggtitle(" Pod boot time" ) +
502
+ theme(legend.position = " bottom" ) +
500
503
theme(axis.text.x = element_text(angle = 90 ))
501
504
502
505
page3 = grid.arrange(
@@ -535,6 +538,7 @@ inode_line_plot <- ggplot() +
535
538
ylab(" inodes free" ) +
536
539
scale_y_continuous(labels = comma , sec.axis = sec_axis(~ . / inode_scale , name = " pods" )) +
537
540
ggtitle(" inodes free" ) +
541
+ theme(legend.position = " bottom" ) +
538
542
theme(axis.text.x = element_text(angle = 90 ))
539
543
540
544
page4 = grid.arrange(
@@ -577,6 +581,7 @@ interface_packet_line_plot <- ggplot() +
577
581
ylab(" packets" ) +
578
582
scale_y_continuous(labels = comma , sec.axis = sec_axis(~ . / ip_scale , name = " pods" )) +
579
583
ggtitle(" interface packets" ) +
584
+ theme(legend.position = " bottom" ) +
580
585
theme(axis.text.x = element_text(angle = 90 ))
581
586
582
587
oct_scale = max(c(max(ifoctetdata $ tx , na.rm = TRUE ),
@@ -609,6 +614,7 @@ interface_octet_line_plot <- ggplot() +
609
614
ylab(" octets" ) +
610
615
scale_y_continuous(labels = comma , sec.axis = sec_axis(~ . / oct_scale , name = " pods" )) +
611
616
ggtitle(" interface octets" ) +
617
+ theme(legend.position = " bottom" ) +
612
618
theme(axis.text.x = element_text(angle = 90 ))
613
619
614
620
page5 = grid.arrange(
@@ -653,6 +659,7 @@ interface_drop_line_plot <- ggplot() +
653
659
ylab(" drops" ) +
654
660
scale_y_continuous(labels = comma , sec.axis = sec_axis(~ . / drop_scale , name = " pods" )) +
655
661
ggtitle(" interface drops" ) +
662
+ theme(legend.position = " bottom" ) +
656
663
theme(axis.text.x = element_text(angle = 90 ))
657
664
658
665
# errors are often 0, so providing 1 so we won't scale by infinity
@@ -687,6 +694,7 @@ interface_error_line_plot <- ggplot() +
687
694
ylab(" errors" ) +
688
695
scale_y_continuous(labels = comma , sec.axis = sec_axis(~ . / error_scale , name = " pods" )) +
689
696
ggtitle(" interface errors" ) +
697
+ theme(legend.position = " bottom" ) +
690
698
theme(axis.text.x = element_text(angle = 90 ))
691
699
692
700
page6 = grid.arrange(
0 commit comments