-
Notifications
You must be signed in to change notification settings - Fork 243
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
feat(static/metrics): migrate default WAL directory to data-alloy
#571
feat(static/metrics): migrate default WAL directory to data-alloy
#571
Conversation
internal/static/metrics/agent.go
Outdated
@@ -19,7 +19,7 @@ import ( | |||
var DefaultConfig = Config{ | |||
Global: instance.DefaultGlobalConfig, | |||
InstanceRestartBackoff: 5 * time.Second, | |||
WALDir: "data-agent/", | |||
WALDir: "data-alloy/", |
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 one is intentional; internal/static is kept around for the config converters from static -> Alloy, and so we want to keep its default configuration the same, where it does write to data-agent/ by default :)
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.
Maybe adding a comment instead would be useful here so others can more easily understand why it’s not renamed
Signed-off-by: hainenber <[email protected]>
… legacy `data-agent` + remove CHANGELOG entry Signed-off-by: hainenber <[email protected]>
5579e4e
to
249350c
Compare
internal/static/metrics/agent.go
Outdated
// The following legacy WALDir path is intetionally kept for config conversion from static to Alloy. | ||
// Consult Alloy maintainers for changes. | ||
WALDir: "data-alloy/", |
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.
Can we keep this line as data-agent
like Robert said in his previous comment?
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.
Oops, forgot this one. Done in the HEAD commit :D
Signed-off-by: hainenber <[email protected]>
Signed-off-by: hainenber <[email protected]>
Signed-off-by: hainenber <[email protected]>
PR Description
I notice that there are a few places where
data-agent
is still referenced despite the default directory for storage is nowdata-alloy
.Which issue(s) this PR fixes
Notes to the Reviewer
I have a hunch that these refs are being intentionally kept for other purposes. If that's the case, kindly help closing the PR as I don't have further context :D
PR Checklist