Skip to content

Commit 73c8928

Browse files
committed
log to stdout in containers
1 parent 9b574fa commit 73c8928

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/config/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ func defaultCollector(collector *Collector, config *Config) {
169169
CollectionInterval: 1 * time.Minute,
170170
InitialDelay: 1 * time.Second,
171171
}
172+
collector.Log = &Log{
173+
Path: "stdout",
174+
Level: "info",
175+
}
172176
} else {
173177
collector.Receivers.HostMetrics = &HostMetrics{
174178
Scrapers: &HostMetricsScrapers{

0 commit comments

Comments
 (0)