-
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
Fix an issue with the static to flow converter for blackbox exporter … #5476
Conversation
…modules config not being included in the river output. Signed-off-by: erikbaranowski <[email protected]>
|
||
func TestUnmarshalRiverWithInlineConfigYaml(t *testing.T) { | ||
riverCfg := ` | ||
config = "modules:\n http_2xx:\n prober: http\n timeout: 5s\n" |
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.
I decided to include this similar test since it validates and demonstrates the traditional yaml format in use for this argument.
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.
LGTM!
ProbeTimeoutOffset float64 `yaml:"probe_timeout_offset,omitempty"` | ||
BlackboxConfigFile string `yaml:"config_file,omitempty"` | ||
BlackboxTargets []BlackboxTarget `yaml:"blackbox_targets"` | ||
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.
As an aside:
This would normally be the kind of thing which would be a breaking change to the code API. To me, that's re-enforcing the idea of putting everything in internal/ for 1.0 until we're ready to pick a subset of packages to expose.
…modules (grafana#5476) config not being included in the river output. Signed-off-by: erikbaranowski <[email protected]> (cherry picked from commit 04b90c6)
…modules
config not being included in the river output.
PR Description
Which issue(s) this PR fixes
Fixes #5451
Notes to the Reviewer
PR Checklist