-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add backing adapter/port as labels to NIC metrics
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]>
- Loading branch information
1 parent
7bf2067
commit a7b4600
Showing
3 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters