diff --git a/examples/up.conf.example b/examples/up.conf.example index 3d0bcd1b..91a4d86c 100644 --- a/examples/up.conf.example +++ b/examples/up.conf.example @@ -1,4 +1,4 @@ -# unifi-poller primary configuration file. TOML FORMAT # +# UniFi Poller primary configuration file. TOML FORMAT # # commented lines are defaults, uncomment to change. # ######################################################## @@ -20,7 +20,12 @@ # Recommend enabling debug with this setting for better error logging. #quiet = false -# If the poller experiences an error from the UniFi Controller or from InfluxDB +# Lambda mode makes the application exit after collecting and reporting metrics one time. +# This mode requires an external process like an AWS Lambda or a simple crontab to keep +# the timings accurate on UniFi Poller run intervals. +#lambda = false + +# If the poller experiences an error from the UniFi controller or from InfluxDB # it will exit. If you do not want it to exit, change max_errors to -1. You can # adjust the config to tolerate more errors by setting this to a higher value. # Recommend setting this between 0 and 5. See man page for more explanation. diff --git a/examples/up.json.example b/examples/up.json.example index 3ce54de4..019c9b13 100644 --- a/examples/up.json.example +++ b/examples/up.json.example @@ -3,6 +3,7 @@ "interval": "30s", "debug": false, "quiet": false, + "lambda": false, "max_errors": 0, "influx_url": "http://127.0.0.1:8086", "influx_user": "unifi", diff --git a/examples/up.xml.example b/examples/up.xml.example index ccd6cf98..5247154d 100644 --- a/examples/up.xml.example +++ b/examples/up.xml.example @@ -1,7 +1,7 @@ @@ -36,7 +36,14 @@ false + false + +