Skip to content

Commit

Permalink
Fixes: wrong order in the output of the metrics in the interface band…
Browse files Browse the repository at this point in the history
…with gaph

The interface bandwidth graph displays the input/output bandwidth metrics in a non-uniform order. In the diagram, the input bandwidth is in the upper half and the output bandwidth is in the lower half of the diagram. In the legend and tooltip, it is the other way around.

This PR will change the order of the Input/Output bandwith in the legend and the tool tip.

For more (graphical) detail have a look at 

https://forum.checkmk.com/t/servicegraphen-kosmetische-anfrage/29906/8
  • Loading branch information
thl-cmk authored Jun 22, 2023
1 parent a2e5b91 commit 9b39c15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmk/gui/plugins/metrics/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1688,8 +1688,8 @@ def register_requests_metrics() -> None:
graph_info["bandwidth_translated"] = {
"title": _("Bandwidth"),
"metrics": [
("if_in_octets,8,*@bits/s", "area", _("Input bandwidth")),
("if_out_octets,8,*@bits/s", "-area", _("Output bandwidth")),
("if_out_octets,8,*@bits/s", "area", _("Input bandwidth")),
("if_in_octets,8,*@bits/s", "-area", _("Output bandwidth")),
],
"scalars": [
("if_in_octets:warn", _("Warning (In)")),
Expand All @@ -1704,11 +1704,11 @@ def register_requests_metrics() -> None:
"title": _("Bandwidth"),
"metrics": [
(
"if_in_bps",
"if_out_bps",
"area",
),
(
"if_out_bps",
"if_in_bps",
"-area",
),
],
Expand Down

0 comments on commit 9b39c15

Please sign in to comment.