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

Converter static v2 3rd set of integrations #5698

Merged
merged 24 commits into from
Nov 6, 2023
Merged

Conversation

erikbaranowski
Copy link
Contributor

@erikbaranowski erikbaranowski commented Nov 2, 2023

PR Description

This accounts for the remaining integrations from v1 that also exist in v2. There are still some integrations exclusive to v2 that need to be wired up.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@@ -18,7 +20,7 @@ var DefaultConfig = Config{
type Config struct {
BlackboxConfigFile string `yaml:"config_file,omitempty"`
BlackboxTargets []blackbox_exporter.BlackboxTarget `yaml:"blackbox_targets"`
BlackboxConfig blackbox_config.Config `yaml:"blackbox_config,omitempty"`
BlackboxConfig util.RawYAML `yaml:"blackbox_config,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the changes in this file match the changes we already did the integrations v1 to enable to converters to pass the raw yaml to the river output

@@ -235,11 +285,10 @@ func (b *IntegrationsConfigBuilder) appendExporterV2(commonConfig *common_v2.Met
commonConfig.ApplyDefaults(b.cfg.Integrations.ConfigV2.Metrics.Autoscrape)
scrapeConfig := prom_config.DefaultScrapeConfig
scrapeConfig.JobName = b.formatJobName(name, commonConfig.InstanceKey)
scrapeConfig.RelabelConfigs = commonConfig.Autoscrape.RelabelConfigs
scrapeConfig.RelabelConfigs = append(commonConfig.Autoscrape.RelabelConfigs, relabelConfigs...)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this fixed a potential bug where I was overwriting the value instead of appending.

@erikbaranowski erikbaranowski marked this pull request as ready for review November 3, 2023 19:34
@erikbaranowski erikbaranowski requested review from a team as code owners November 3, 2023 19:34
@erikbaranowski erikbaranowski merged commit e257a56 into main Nov 6, 2023
8 checks passed
@erikbaranowski erikbaranowski deleted the converter-static-v2-3 branch November 6, 2023 17:00
@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 Feb 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 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