Skip to content

Commit

Permalink
Fix v1 logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Hooten committed Oct 23, 2019
1 parent 284f1a9 commit 8d2060f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
'rules.alert.for-outage-tolerance' => $prometheus::alert_for_outage_tolerance,
'rules.alert.for-grace-period' => $prometheus::alert_for_grace_period,
'rules.alert.resend-delay' => $prometheus::alert_resend_delay,
'query.lookback-delta' => $prometheus::query_lookback_delta
'query.lookback-delta' => $prometheus::query_lookback_delta,
'log.format' => $prometheus::log_format,
}
}

Expand Down Expand Up @@ -129,7 +130,7 @@
'query.max-concurrency' => $prometheus::query_max_concurrency,
'query.staleness-delta' => $prometheus::query_staleness_delta,
'log.level' => $prometheus::log_level,
'log.format' => "\"logger:stdout${v1_log_format}\""
'log.format' => 'logger:stdout',
}
}

Expand Down
3 changes: 1 addition & 2 deletions spec/classes/prometheus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@
query_timeout: '2m',
query_max_concurrency: '30',
query_staleness_delta: '5m',
log_level: 'fatal',
log_format: 'json'
log_level: 'fatal'
}
end

Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/files/cli/prometheus1_all.systemd
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ExecStart=/usr/local/bin/prometheus \
-query.max-concurrency=30 \
-query.staleness-delta=5m \
-log.level=fatal \
-log.format="logger:stdout?json=true"
-log.format=logger:stdout
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/files/cli/prometheus1_extra.systemd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ExecStart=/usr/local/bin/prometheus \
-web.console.libraries=/usr/local/share/prometheus/console_libraries \
-storage.local.path=/var/lib/prometheus \
-storage.local.retention=360h \
-log.format="logger:stdout" \
-log.format=logger:stdout \
-web.telemetry-path=/metrics
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Expand Down

0 comments on commit 8d2060f

Please sign in to comment.