- Documentation
- Learning Hub
- Module 3 of 4 Remote configuration
Configuration strategies
Slide 10 of 14
Configuration strategies
Fleet Management gives you flexibility in how you balance local and remote configuration. You don’t have to go all-in on either approach. Choose the strategy that fits your situation.
Remote-first
Minimal local config, everything else managed remotely.
remotecfg {
url = "https://..."
// ... auth config
id = constants.hostname
attributes = {"env" = "prod"}
}
// Everything else comes from Fleet ManagementLocal-first
Primary config stays local, Fleet Management for self-monitoring.
// Local config: full configuration
remotecfg {
url = "https://..."
id = constants.hostname
attributes = {"env" = "prod"}
}
// All your standard collection is here
prometheus.scrape "node" { /* ... */ }
prometheus.scrape "app" { /* ... */ }
loki.source.file "logs" { /* ... */ }
// Fleet Management used only for collector self-monitoringHybrid
Top-level config blocks stay local. Everything else is remote.
// Local config: top-level blocks
logging { level = "info" }
livedebugging { enabled = true }
remotecfg {
url = "https://..."
id = constants.hostname
attributes = {"env" = "prod"}
}
// All other config managed remotely in Fleet Management