Skip to content

Syntax improvements and code quality enhancements for EFA node exporter#966

Open
KeitaW wants to merge 1 commit intomainfrom
fix/pr-885-efa-node-exporter-improvements
Open

Syntax improvements and code quality enhancements for EFA node exporter#966
KeitaW wants to merge 1 commit intomainfrom
fix/pr-885-efa-node-exporter-improvements

Conversation

@KeitaW
Copy link
Copy Markdown
Collaborator

@KeitaW KeitaW commented Feb 17, 2026

Note: Recreated from #895 which was auto-closed during repository history cleanup (see #959). Original author: @paragao

Review Findings for PR #885

Hi @rpovelik! I reviewed the merged PR #885 "EFA Node exporter updates" and found several areas for improvement that I've addressed in this follow-up PR.

Issues Found & Fixed:

🔧 Syntax Improvements:

  • Fixed missing case statements in parseAmazonEfaCounters function for existing counters
  • Added parsing logic for all 28 existing counters that were missing

📝 Code Quality Enhancements:

  • Standardized indentation and formatting throughout both files
  • Fixed typos in metric descriptions ("droped" → "dropped", "reponses" → "responses")
  • Improved error handling with more descriptive error messages including counter name and value

✅ Verification:

  • Confirmed all 5 new counters from your PR are properly integrated:
    • impaired_remote_conn_events
    • retrans_bytes
    • retrans_pkts
    • retrans_timeout_events
    • unresponsive_remote_events

Request for Review:

Could you please review these improvements and test them to ensure the EFA node exporter functionality works as expected? The changes maintain all your original functionality while fixing compilation issues and improving code maintainability.

Thanks for the great work on adding the new EFA counters! 🚀

… (PR #885 follow-up)

- Fix missing case statements in parseAmazonEfaCounters function
- Add all missing counter parsing logic for existing counters
- Standardize indentation and formatting consistency
- Improve error handling with more descriptive messages
- Fix typos in metric descriptions (dropped, responses)
- Ensure all 5 new counters from PR #885 are properly integrated

This addresses compilation issues and improves maintainability of the EFA node exporter code.
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