k8s.jsonnet: Default to only backfilling things from this year

By setting a 6-month limit
pull/192/head
Mike Lang 4 years ago committed by Mike Lang
parent 324d180c5e
commit 7981623611

@ -81,6 +81,10 @@
// The timestamp corresponding to 00:00 in bustime // The timestamp corresponding to 00:00 in bustime
bustime_start: "1970-01-01T00:00:00Z", bustime_start: "1970-01-01T00:00:00Z",
// Max hours ago to backfill, ie. do not backfill for times before this many hours ago.
// Set to null to disable.
backfill_max_hours_ago: 24 * 30 * 6, // approx 6 months
// Extra options to pass via environment variables, // Extra options to pass via environment variables,
// eg. log level, disabling stack sampling. // eg. log level, disabling stack sampling.
env: { env: {
@ -214,7 +218,9 @@
"--node-database", $.db_connect, "--node-database", $.db_connect,
"--localhost", $.config.localhost, "--localhost", $.config.localhost,
"--metrics-port", "80", "--metrics-port", "80",
]), ] + (if $.config.backfill_max_hours_ago == null then [] else [
"--start", std.toString($.config.backfill_max_hours_ago),
])),
// Segment coverage is a monitoring helper that periodically scans available segments // Segment coverage is a monitoring helper that periodically scans available segments
// and reports stats. It also creates a "coverage map" image to represent this info. // and reports stats. It also creates a "coverage map" image to represent this info.
// It puts this in the segment directory where nginx will serve it. // It puts this in the segment directory where nginx will serve it.

Loading…
Cancel
Save