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

integrations: add missing setting to override eventhandler instance #2432

Merged
merged 7 commits into from
Oct 27, 2022

Conversation

marctc
Copy link
Contributor

@marctc marctc commented Oct 26, 2022

PR Description

As part of the effort of completing #2017 we realized that eventhandler integration
didn't include instance into the config which allows also to override the instance
key for that integration.

Which issue(s) this PR fixes

#2366

PR Checklist

  • CHANGELOG updated
  • Documentation added
  • Tests updated

@@ -38,7 +39,8 @@ type Config struct {
// If you would like to limit events to a given namespace, use this parameter.
Namespace string `yaml:"namespace,omitempty"`
// Extra labels to append to log lines
ExtraLabels labels.Labels `yaml:"extra_labels,omitempty"`
ExtraLabels labels.Labels `yaml:"extra_labels,omitempty"`
Common common.MetricsConfig `yaml:",inline"`
Copy link
Member

@rfratto rfratto Oct 26, 2022

Choose a reason for hiding this comment

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

I don't think embedding all of MetricsConfig is appropriate here because eventhandler is a logging integration. Can we manually copy the instance key field instead of bringing in everything else?

@marctc marctc requested a review from rfratto October 26, 2022 14:26
Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Marc!

@marctc marctc enabled auto-merge (squash) October 26, 2022 14:29
Copy link
Contributor

@karengermond karengermond left a comment

Choose a reason for hiding this comment

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

LGTM

@marctc marctc merged commit a30c985 into main Oct 27, 2022
@marctc marctc deleted the instance_id_eventhandler branch October 27, 2022 13:32
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Mar 16, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants