Skip to content

Conversation

diafour
Copy link
Member

@diafour diafour commented Sep 19, 2025

Description

  • Remove metric replacement rule to always set network label with "default" value
  • Add kubevirt patch to set network name from annotation.

Supporting PR: 3p-kubevirt #22 feat(metrics): add network label with network name

Why do we need it, and what problem does it solve?

Given this specs:

  networks:
  - type: Main
  - name: test-vlan-540
    type: Network
  - name: test-vlan-542
    type: Network

Before: only "default" network is shown:

image

After:

image

Network bandwidth is summed for all networks:

image image image image

What is the expected result?

Graph contains separate lines for each network specified in the VM spec.

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@diafour diafour added this to the v1.1.0 milestone Sep 19, 2025
@diafour diafour force-pushed the chore/module/fix-interfaces-on-vm-dashboard branch from ff47171 to 91e6de0 Compare September 22, 2025 21:05
- Remove replace to always set network label with "default" value
- Add kubevirt patch to set network name from annotation.
- Sum all networks on "Network bandwidth usage" graph

Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
@diafour diafour force-pushed the chore/module/fix-interfaces-on-vm-dashboard branch from 1be6552 to b5090e2 Compare September 24, 2025 06:48
@diafour diafour merged commit f3eacae into main Sep 24, 2025
28 of 31 checks passed
@diafour diafour deleted the chore/module/fix-interfaces-on-vm-dashboard branch September 24, 2025 08:20
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.

2 participants