diff --git a/integrations/inputunifi/examples/MANUAL.md b/integrations/inputunifi/examples/MANUAL.md index ea45d132..4648bc4c 100644 --- a/integrations/inputunifi/examples/MANUAL.md +++ b/integrations/inputunifi/examples/MANUAL.md @@ -75,7 +75,8 @@ is provided so the application can be easily adapted to any environment. interval default: 30s How often to poll the controller for updated client and device data. - The UniFi Controller only updates traffic stats about every 30 seconds. + The UniFi Controller only updates traffic stats about every 30-60 seconds. + Only works if "mode" (below) is "influx" - other modes do not use interval. debug default: false This turns on time stamps and line numbers in logs, outputs a few extra @@ -104,7 +105,7 @@ is provided so the application can be easily adapted to any environment. * Value: prometheus In this mode the application opens an http interface and exports the measurements at /metrics for collection by prometheus. Enabling this - mode disables InfluxDB usage entirely. This is BETA. + mode disables InfluxDB usage entirely. http_listen default: 0.0.0.0:9130 This option controls the IP and port the http listener uses when the diff --git a/integrations/inputunifi/examples/up.conf.example b/integrations/inputunifi/examples/up.conf.example index 39f98775..0f1b3041 100644 --- a/integrations/inputunifi/examples/up.conf.example +++ b/integrations/inputunifi/examples/up.conf.example @@ -8,7 +8,8 @@ sites = ["all"] # The UniFi Controller only updates traffic stats about every 30 seconds. -# Setting this to something lower may lead to "zeros" in your data. You've been warned. +# Setting this to something lower may lead to "zeros" in your data. +# If you're getting zeros now, set this to "1m" interval = "30s" # Turns on line numbers, microsecond logging, and a per-device log. @@ -26,13 +27,13 @@ quiet = false # # There are two other options at this time: "influxlambda" and "prometheus" # -# Lambda mode makes the application exit after collecting and reporting metrics +# Mode "influxlambda" makes the application exit after collecting and reporting metrics # to InfluxDB 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. # -# Prometheus mode opens an HTTP server on port 9130 and exports the metrics at +# Mode "prometheus" opens an HTTP server on port 9130 and exports the metrics at # /metrics for polling collection by a prometheus server. This disables influxdb. -# IMPORTANT: The prometheus mode is still beta and isn't tested very well. +# IMPORTANT: The prometheus mode is still beta. # Please help us test and provide your feedback on the github repo! mode = "influx" diff --git a/integrations/inputunifi/examples/up.xml.example b/integrations/inputunifi/examples/up.xml.example index 856e292f..3022948b 100644 --- a/integrations/inputunifi/examples/up.xml.example +++ b/integrations/inputunifi/examples/up.xml.example @@ -18,7 +18,8 @@ 30s @@ -42,13 +43,14 @@ # # There are two other options at this time: "influxlambda" and "prometheus" # - # Lambda mode makes the application exit after collecting and reporting metrics + # Mode "influxlambda" makes the application exit after collecting and reporting metrics # to InfluxDB 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. # - # Prometheus mode opens an HTTP server on port 9130 and exports the metrics at + # Mode "prometheus" opens an HTTP server on port 9130 and exports the metrics at # /metrics for polling collection by a prometheus server. This disables influxdb. - # IMPORTANT: The prometheus mode is still beta and isn't tested very well. + # IMPORTANT: The prometheus mode is still beta. + # Please help us test and provide your feedback on the github repo! --> influx diff --git a/integrations/inputunifi/examples/up.yaml.example b/integrations/inputunifi/examples/up.yaml.example index adf3f019..4dfe2e67 100644 --- a/integrations/inputunifi/examples/up.yaml.example +++ b/integrations/inputunifi/examples/up.yaml.example @@ -9,7 +9,9 @@ sites: - all # The UniFi Controller only updates traffic stats about every 30 seconds. -# Setting this to something lower may lead to "zeros" in your data. You've been warned. +# Setting this to something lower may lead to "zeros" in your data. +# If you're getting zeros now, set this to "1m" +# Only has effect if "mode" (below) is "influx" - other modes do not use interval. interval: "30s" # Turns on line numbers, microsecond logging, and a per-device log. @@ -27,13 +29,14 @@ quiet: false # # There are two other options at this time: "influxlambda" and "prometheus" # -# Lambda mode makes the application exit after collecting and reporting metrics +# Mode "influxlambda" makes the application exit after collecting and reporting metrics # to InfluxDB 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. # -# Prometheus mode opens an HTTP server on port 9130 and exports the metrics at +# Mode "prometheus" opens an HTTP server on port 9130 and exports the metrics at # /metrics for polling collection by a prometheus server. This disables influxdb. -# IMPORTANT: The prometheus mode is still beta and isn't tested very well. +# IMPORTANT: The prometheus mode is still beta. +# Please help us test and provide your feedback on the github repo! mode: "influx" # This controls on which ip and port /metrics is exported when mode is "prometheus".