From 6af11c1b59c29fec5af5ce152700112762291ac9 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 4 Aug 2022 11:31:14 +0200 Subject: [PATCH] [bird] Configure Bird using ISO-format timestamps to get meaningful uptime information in the Prometheus exporter Signed-off-by: Yohann D'ANELLO --- roles/bird2/templates/bird/bird.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/bird2/templates/bird/bird.conf.j2 b/roles/bird2/templates/bird/bird.conf.j2 index 56b2dc10..963503ba 100644 --- a/roles/bird2/templates/bird/bird.conf.j2 +++ b/roles/bird2/templates/bird/bird.conf.j2 @@ -18,6 +18,10 @@ router id {{ bird.id }}; # Turn on global debugging of all protocols (all messages or just selected classes) # debug protocols all; +# To get meaningful uptime information in the Prometheus exporter, BIRD needs to be +# configured to use ISO-format timestamps +timeformat protocol iso long; + # +----------------------+ # | CONSTANT DEFINITIONS | # +----------------------+