diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-19 19:22:56 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-19 19:22:56 +0100 |
commit | b0ddada5d10d414788439d95865e145b231a1b4b (patch) | |
tree | b5b83a25a72ea911b2c3db5f0b93b79653829b5e | |
parent | 69f961a23cb8a2196d5315105eb4a72764625351 (diff) |
munin: Add 'currently checked in' counter1.11.5
-rw-r--r-- | lib/Travelynx/Command/munin.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/munin.pm b/lib/Travelynx/Command/munin.pm index 110e058..ee509d3 100644 --- a/lib/Travelynx/Command/munin.pm +++ b/lib/Travelynx/Command/munin.pm @@ -20,7 +20,7 @@ sub run { my $db = $self->app->pg->db; - my $now = DateTime->now( time_zone => 'Europe/Berlin' ); + my $now = DateTime->now( time_zone => 'Europe/Berlin' ); my $active = $now->clone->subtract( months => 1 ); my $checkin_window_query @@ -40,6 +40,8 @@ sub run { } )->hash->{count} ); + query_to_munin( 'checked_in', + $db->select( 'in_transit', 'count(*) as count' )->hash->{count} ); query_to_munin( 'checkins_24h', $db->query( $checkin_window_query, |