Skip to content

fix: handle fc host in eseries#4294

Merged
rahulguptajss merged 1 commit into
mainfrom
rg2-eseries-fc
May 20, 2026
Merged

fix: handle fc host in eseries#4294
rahulguptajss merged 1 commit into
mainfrom
rg2-eseries-fc

Conversation

@rahulguptajss
Copy link
Copy Markdown
Contributor

No description provided.

@rahulguptajss rahulguptajss requested a review from cgrinds as a code owner May 20, 2026 08:11
Copilot AI review requested due to automatic review settings May 20, 2026 08:11
@rahulguptajss rahulguptajss requested a review from Hardikl as a code owner May 20, 2026 08:11
@cla-bot cla-bot Bot added the cla-signed label May 20, 2026
@rahulguptajss rahulguptajss linked an issue May 20, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the E-Series hardware host-interface collector to correctly parse Fibre Channel (FC) interface payloads where the interfaceType enum value doesn’t match the JSON property key, and where FC uses different field names for link/speed. Also updates the Grafana dashboard to display interface type and adds unit coverage for the new parsing paths.

Changes:

  • Add interfaceTypeToDataKey to map interfaceType → correct ioInterfaceTypeData JSON key (e.g., fcfibre).
  • Add FC-aware fallbacks for link and speed fields (linkStatus / currentInterfaceSpeed).
  • Update the E-Series hardware Grafana table to show interface_type, and add targeted tests for host-interface parsing.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
grafana/dashboards/eseries/hardware.json Stops excluding interface_type so the Host Interfaces table shows port type.
cmd/collectors/eseries/plugins/hardware/controller.go Fixes host-interface parsing for FC and key-mismatch interface types; adds field fallbacks for FC.
cmd/collectors/eseries/plugins/hardware/controller_test.go Adds tests covering FC parsing, key mapping, and label correctness.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/collectors/eseries/plugins/hardware/controller_test.go
Comment thread cmd/collectors/eseries/plugins/hardware/controller_test.go
@rahulguptajss rahulguptajss merged commit e6da40d into main May 20, 2026
14 checks passed
@rahulguptajss rahulguptajss deleted the rg2-eseries-fc branch May 20, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ESeries] Missing FC host interfaces

3 participants