fix comments
This commit is contained in:
parent
0f8abe45c3
commit
0e1af5b543
|
|
@ -75,7 +75,8 @@ is provided so the application can be easily adapted to any environment.
|
||||||
|
|
||||||
interval default: 30s
|
interval default: 30s
|
||||||
How often to poll the controller for updated client and device data.
|
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
|
debug default: false
|
||||||
This turns on time stamps and line numbers in logs, outputs a few extra
|
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
|
* Value: prometheus
|
||||||
In this mode the application opens an http interface and exports the
|
In this mode the application opens an http interface and exports the
|
||||||
measurements at /metrics for collection by prometheus. Enabling this
|
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
|
http_listen default: 0.0.0.0:9130
|
||||||
This option controls the IP and port the http listener uses when the
|
This option controls the IP and port the http listener uses when the
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@
|
||||||
sites = ["all"]
|
sites = ["all"]
|
||||||
|
|
||||||
# The UniFi Controller only updates traffic stats about every 30 seconds.
|
# 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"
|
interval = "30s"
|
||||||
|
|
||||||
# Turns on line numbers, microsecond logging, and a per-device log.
|
# 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"
|
# 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
|
# 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.
|
# 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.
|
# /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!
|
# Please help us test and provide your feedback on the github repo!
|
||||||
mode = "influx"
|
mode = "influx"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,8 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
# The UniFi Controller only updates traffic stats about every 30 seconds.
|
# 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</interval>
|
<interval>30s</interval>
|
||||||
|
|
||||||
|
|
@ -42,13 +43,14 @@
|
||||||
#
|
#
|
||||||
# There are two other options at this time: "influxlambda" and "prometheus"
|
# 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
|
# 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.
|
# 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.
|
# /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</mode>
|
<mode>influx</mode>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,9 @@ sites:
|
||||||
- all
|
- all
|
||||||
|
|
||||||
# The UniFi Controller only updates traffic stats about every 30 seconds.
|
# 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"
|
interval: "30s"
|
||||||
|
|
||||||
# Turns on line numbers, microsecond logging, and a per-device log.
|
# 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"
|
# 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
|
# 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.
|
# 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.
|
# /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"
|
mode: "influx"
|
||||||
|
|
||||||
# This controls on which ip and port /metrics is exported when mode is "prometheus".
|
# This controls on which ip and port /metrics is exported when mode is "prometheus".
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue