update examples for lambda config

This commit is contained in:
David Newhall II 2019-06-23 16:27:58 -07:00
parent d55a00abe0
commit fec1252d5e
4 changed files with 24 additions and 6 deletions

View File

@ -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.

View File

@ -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",

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
#######################################################
# unifi-poller primary configuration file. XML FORMAT #
# UniFi Poller primary configuration file. XML FORMAT #
# provided values are defaults #
#######################################################
-->
@ -36,7 +36,14 @@
<quiet>false</quiet>
<!--
# 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</lambda>
<!--
# 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.

View File

@ -1,4 +1,4 @@
# unifi-poller primary configuration file. YAML FORMAT #
# UniFi Poller primary configuration file. YAML FORMAT #
# provided values are defaults #
########################################################
---
@ -21,7 +21,12 @@ debug: false
# 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.