Skip to content

Commit

Permalink
gitignore the default data-alloy storage dir (#571)
Browse files Browse the repository at this point in the history
Signed-off-by: hainenber <[email protected]>
  • Loading branch information
hainenber authored Apr 19, 2024
1 parent 6961d78 commit 57a0197
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build/
data/
data-agent/
data-alloy/
dist/
internal/web/ui/node_modules/
internal/web/ui/build/
Expand Down
14 changes: 8 additions & 6 deletions internal/static/metrics/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ import (
var DefaultConfig = Config{
Global: instance.DefaultGlobalConfig,
InstanceRestartBackoff: 5 * time.Second,
WALDir: "data-agent/",
WALCleanupAge: 12 * time.Hour,
WALCleanupPeriod: 30 * time.Minute,
ServiceConfig: cluster.DefaultConfig,
ServiceClientConfig: client.DefaultConfig,
InstanceMode: instance.DefaultMode,
// The following legacy WALDir path is intentionally kept for config conversion from static to Alloy.
// Consult Alloy maintainers for changes.
WALDir: "data-agent/",
WALCleanupAge: 12 * time.Hour,
WALCleanupPeriod: 30 * time.Minute,
ServiceConfig: cluster.DefaultConfig,
ServiceClientConfig: client.DefaultConfig,
InstanceMode: instance.DefaultMode,
}

// Config defines the configuration for the entire set of Prometheus client
Expand Down

0 comments on commit 57a0197

Please sign in to comment.