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

Reduce cardinality of OVS interface metrics #3032

Merged
merged 1 commit into from Jun 13, 2022

Conversation

martinkennelly
Copy link
Member

@martinkennelly martinkennelly commented Jun 9, 2022

Reduce cardinality of OVS interface metrics

The cardinality of OVS interface metrics is undefined and will
cause a huge increase in ovnkube-node memory and prom db size.
This PR reduces this cardinality.
It also removes interface metrics that have no obvious value but
leaves the statistics and link_resets.

Renames and reduces cardinality of:

  • ovs_vswitchd_interface_resets_total
  • ovs_vswitchd_interface_rx_dropped_total
  • ovs_vswitchd_interface_tx_dropped_total
  • ovs_vswitchd_interface_rx_errors_total
  • ovs_vswitchd_interface_tx_errors_total
  • ovs_vswitchd_interface_collisions_total

Removes:

  • ovs_vswitchd_interface_driver_name
  • ovs_vswitchd_interface_driver_version
  • ovs_vswitchd_interface_firmware_version
  • ovs_vswitchd_interface_rx_packets
  • ovs_vswitchd_interface_tx_packets
  • ovs_vswitchd_interface_rx_bytes
  • ovs_vswitchd_interface_tx_bytes
  • ovs_vswitchd_interface_rx_frame_err
  • ovs_vswitchd_interface_rx_over_err
  • ovs_vswitchd_interface_rx_crc_err
  • ovs_vswitchd_interface_name
  • ovs_vswitchd_interface_duplex
  • ovs_vswitchd_interface_type
  • ovs_vswitchd_interface_admin_state
  • ovs_vswitchd_interface_link_state
  • ovs_vswitchd_interface_ifindex
  • ovs_vswitchd_interface_link_speed
  • ovs_vswitchd_interface_mtu
  • ovs_vswitchd_interface_ofport
  • ovs_vswitchd_interface_ingress_policing_burst
  • ovs_vswitchd_interface_ingress_policing_rate

/cc @girishmg @npinaeva

I propose we use this instead of PR ( #3010 ) to fix ovnkube-nodes memory increase issue.

@coveralls
Copy link

coveralls commented Jun 9, 2022

Coverage Status

Coverage increased (+0.7%) to 52.437% when pulling cc90e34 on martinkennelly:rework_bridge_metrics into 266d10b on ovn-org:master.

The cardinality of OVS interface metrics is undefined and will
cause a huge increase in ovnkube-node memory and prom db size.
This PR reduces this cardinality.
It also removes interface metrics that have no obvious value but
leaves the statistics and link_resets.

Renames and reduces cardinality of:
* ovs_vswitchd_interface_resets_total
* ovs_vswitchd_interface_rx_dropped_total
* ovs_vswitchd_interface_tx_dropped_total
* ovs_vswitchd_interface_rx_errors_total
* ovs_vswitchd_interface_tx_errors_total
* ovs_vswitchd_interface_collisions_total

Removes:
* ovs_vswitchd_interface_driver_name
* ovs_vswitchd_interface_driver_version
* ovs_vswitchd_interface_firmware_version
* ovs_vswitchd_interface_rx_packets
* ovs_vswitchd_interface_tx_packets
* ovs_vswitchd_interface_rx_bytes
* ovs_vswitchd_interface_tx_bytes
* ovs_vswitchd_interface_rx_frame_err
* ovs_vswitchd_interface_rx_over_err
* ovs_vswitchd_interface_rx_crc_err
* ovs_vswitchd_interface_name
* ovs_vswitchd_interface_duplex
* ovs_vswitchd_interface_type
* ovs_vswitchd_interface_admin_state
* ovs_vswitchd_interface_link_state
* ovs_vswitchd_interface_ifindex
* ovs_vswitchd_interface_link_speed
* ovs_vswitchd_interface_mtu
* ovs_vswitchd_interface_ofport
* ovs_vswitchd_interface_ingress_policing_burst
* ovs_vswitchd_interface_ingress_policing_rate

Signed-off-by: Martin Kennelly <mkennell@redhat.com>
@martinkennelly
Copy link
Member Author

Forced pushed to also remove:

ovs_vswitchd_interface_rx_packets
ovs_vswitchd_interface_tx_packets
ovs_vswitchd_interface_rx_bytes
ovs_vswitchd_interface_tx_bytes

@martinkennelly
Copy link
Member Author

@dcbw When you have time, can you take a look at this to see if it negatively impacts the scale effort?

@npinaeva
Copy link
Member

/lgtm

@trozet trozet merged commit ca3ff88 into ovn-org:master Jun 13, 2022
19 of 20 checks passed
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

Successfully merging this pull request may close these issues.

None yet

4 participants