]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set default value for metric exporter statefile 1085/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 1 Nov 2016 12:26:38 +0000 (14:26 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 1 Nov 2016 12:28:38 +0000 (14:28 +0200)
src/plugins/lua/metric_exporter.lua

index c4a0cdc0e6ed5217abd27a09377aecb1f31b4a6e..3c8ae66e5699e20950f2511b61380602e5ae4a45 100644 (file)
@@ -24,6 +24,7 @@ local pool = mempool.create()
 local settings = {
   interval = 120,
   timeout = 15,
+  statefile = string.format('%s/%s', rspamd_paths['DBDIR'], 'metric_exporter_last_push')
 }
 
 local VAR_NAME = 'metric_exporter_last_push'