diff --git a/.dockerignore b/.dockerignore index 480b8eda45..6b1a85acb8 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,6 @@ build/ data/ -data-agent/ +data-alloy/ dist/ internal/web/ui/node_modules/ internal/web/ui/build/ diff --git a/internal/static/metrics/agent.go b/internal/static/metrics/agent.go index cb7f610842..7313674277 100644 --- a/internal/static/metrics/agent.go +++ b/internal/static/metrics/agent.go @@ -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