Print global_tags first in sample configuration
This commit is contained in:
parent
4e147919d3
commit
f2b3b35640
|
@ -33,7 +33,7 @@ import (
|
|||
|
||||
var (
|
||||
// Default sections
|
||||
sectionDefaults = []string{"agent", "global_tags", "outputs",
|
||||
sectionDefaults = []string{"global_tags", "agent", "outputs",
|
||||
"processors", "aggregators", "inputs"}
|
||||
|
||||
// Default input plugins
|
||||
|
@ -536,13 +536,13 @@ func printFilteredOutputs(outputFilters []string, commented bool) {
|
|||
}
|
||||
|
||||
func printFilteredGlobalSections(sectionFilters []string) {
|
||||
if sliceContains("agent", sectionFilters) {
|
||||
fmt.Printf(agentConfig)
|
||||
}
|
||||
|
||||
if sliceContains("global_tags", sectionFilters) {
|
||||
fmt.Printf(globalTagsConfig)
|
||||
}
|
||||
|
||||
if sliceContains("agent", sectionFilters) {
|
||||
fmt.Printf(agentConfig)
|
||||
}
|
||||
}
|
||||
|
||||
type printer interface {
|
||||
|
|
Loading…
Reference in New Issue