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

[exporter/bmchelix] New component: BMC Helix Exporter #36964

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

NassimBtk
Copy link
Contributor

@NassimBtk NassimBtk commented Dec 26, 2024

Description

This pull request introduces a new component for exporting metrics to BMC Helix. The changes include adding the new component to various configuration files, creating necessary documentation, and implementing the component's configuration and factory logic.

Key changes include:

New Component Addition:
  • Added a new changelog entry for the BMC Helix exporter in .chloggen/bmchelixexporter-new-component.yaml.
  • Updated .github/CODEOWNERS to include the new BMC Helix exporter.
Documentation:
  • Created README.md for the BMC Helix exporter with detailed setup instructions and examples.
Configuration and Factory Implementation:
  • Implemented configuration struct and validation logic in config.go.
  • Created tests for the configuration in config_test.go.
  • Added factory methods for creating the exporter in factory.go.
  • Created tests for the factory methods in factory_test.go.
Miscellaneous:
  • Included the common Makefile in exporter/bmchelixexporter/Makefile.
  • Added package documentation in doc.go.

Link to tracking issue

Fixes #36773

* Go init
* Added README.md and code skeleton.
@NassimBtk NassimBtk requested a review from a team as a code owner December 26, 2024 13:23
* Updated go version to 1.22.0 in the go.mod file.
* Fixed dependency versions in go.mod
if c.ApiKey == "" {
return errors.New("api key is required")
}
if c.Timeout < 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

If timeout must be a positive integer, then I think it should be if c.Timeout <= 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

* Fixed timeout positive integer check.
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.

New component: BMC Helix Exporter
3 participants