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

Add backing adapter/port as labels to NIC metrics #416

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

andy-maier
Copy link
Member

No description provided.

@andy-maier andy-maier self-assigned this Nov 16, 2023
@andy-maier andy-maier added this to the 1.5.0 milestone Nov 16, 2023
@andy-maier andy-maier linked an issue Nov 16, 2023 that may be closed by this pull request
@andy-maier andy-maier force-pushed the andy/nic-adapter-label branch from face764 to d89eff1 Compare November 16, 2023 05:53
@coveralls
Copy link

coveralls commented Nov 16, 2023

Coverage Status

coverage: 36.463% (-1.2%) from 37.628%
when pulling 0661f83 on andy/nic-adapter-label
into 178476f on master.

@andy-maier andy-maier force-pushed the andy/nic-adapter-label branch 4 times, most recently from fba7098 to cdcb2a2 Compare November 16, 2023 07:11
Details:

* If metric group 'partition-attached-network-interface' is defined to be
  fetched, the backing adapters of the respective NICs are determined
  and stored as dynamic attributes 'adapter_name' and 'port_index' on the
  zhmcclient.Nic object that is put into the uri2resource dict.

* In addition, Jinja2 functions 'adapter_name()' and 'adapter_port()'
  have been implemented for use by label value definitions of that
  metric group. These functions look up the zhmcclient.Nic object
  from the uri2resource dict and get the adapter name and port index
  from its newly added dynamic attributes.

* Finally, two new labels 'adapter' and 'port' have been added to
  the metric group 'partition-attached-network-interface', that
  use these two new Jinja2 functions.

Signed-off-by: Andreas Maier <[email protected]>
@andy-maier andy-maier force-pushed the andy/nic-adapter-label branch from cdcb2a2 to 0661f83 Compare November 16, 2023 07:11
@andy-maier andy-maier changed the title [WIP] Add backing adapter/port as labels to NIC metrics Add backing adapter/port as labels to NIC metrics Nov 16, 2023
@andy-maier andy-maier merged commit a7b4600 into master Nov 22, 2023
12 checks passed
@andy-maier andy-maier deleted the andy/nic-adapter-label branch November 22, 2023 12:41
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.

Add the backing adapter as a label to NIC metrics
3 participants