-
Notifications
You must be signed in to change notification settings - Fork 486
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
Conversation
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
@@ -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"` |
There was a problem hiding this comment.
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
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
Signed-off-by: erikbaranowski <[email protected]>
@@ -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...) |
There was a problem hiding this comment.
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.
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