Update precision documentation and examples
Precision is no longer used by the InfluxDB output. closes #3079
This commit is contained in:
parent
7b467a47a7
commit
008d0e724f
|
@ -66,10 +66,13 @@ interval. Maximum flush_interval will be flush_interval + flush_jitter
|
||||||
This is primarily to avoid
|
This is primarily to avoid
|
||||||
large write spikes for users running a large number of telegraf instances.
|
large write spikes for users running a large number of telegraf instances.
|
||||||
ie, a jitter of 5s and flush_interval 10s means flushes will happen every 10-15s.
|
ie, a jitter of 5s and flush_interval 10s means flushes will happen every 10-15s.
|
||||||
* **precision**: By default, precision will be set to the same timestamp order
|
* **precision**:
|
||||||
as the collection interval, with the maximum being 1s. Precision will NOT
|
By default or when set to "0s", precision will be set to the same
|
||||||
be used for service inputs, such as logparser and statsd. Valid values are
|
timestamp order as the collection interval, with the maximum being 1s.
|
||||||
"ns", "us" (or "µs"), "ms", "s".
|
Precision will NOT be used for service inputs. It is up to each individual
|
||||||
|
service input to set the timestamp at the appropriate precision.
|
||||||
|
Valid time units are "ns", "us" (or "µs"), "ms", "s".
|
||||||
|
|
||||||
* **logfile**: Specify the log file name. The empty string means to log to stderr.
|
* **logfile**: Specify the log file name. The empty string means to log to stderr.
|
||||||
* **debug**: Run telegraf in debug mode.
|
* **debug**: Run telegraf in debug mode.
|
||||||
* **quiet**: Run telegraf in quiet mode (error messages only).
|
* **quiet**: Run telegraf in quiet mode (error messages only).
|
||||||
|
@ -178,7 +181,6 @@ fields which begin with `time_`.
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb]]
|
||||||
url = "http://192.168.59.103:8086" # required.
|
url = "http://192.168.59.103:8086" # required.
|
||||||
database = "telegraf" # required.
|
database = "telegraf" # required.
|
||||||
precision = "s"
|
|
||||||
|
|
||||||
# INPUTS
|
# INPUTS
|
||||||
[[inputs.cpu]]
|
[[inputs.cpu]]
|
||||||
|
@ -317,21 +319,18 @@ to avoid measurement collisions:
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb]]
|
||||||
urls = [ "http://localhost:8086" ]
|
urls = [ "http://localhost:8086" ]
|
||||||
database = "telegraf"
|
database = "telegraf"
|
||||||
precision = "s"
|
|
||||||
# Drop all measurements that start with "aerospike"
|
# Drop all measurements that start with "aerospike"
|
||||||
namedrop = ["aerospike*"]
|
namedrop = ["aerospike*"]
|
||||||
|
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb]]
|
||||||
urls = [ "http://localhost:8086" ]
|
urls = [ "http://localhost:8086" ]
|
||||||
database = "telegraf-aerospike-data"
|
database = "telegraf-aerospike-data"
|
||||||
precision = "s"
|
|
||||||
# Only accept aerospike data:
|
# Only accept aerospike data:
|
||||||
namepass = ["aerospike*"]
|
namepass = ["aerospike*"]
|
||||||
|
|
||||||
[[outputs.influxdb]]
|
[[outputs.influxdb]]
|
||||||
urls = [ "http://localhost:8086" ]
|
urls = [ "http://localhost:8086" ]
|
||||||
database = "telegraf-cpu0-data"
|
database = "telegraf-cpu0-data"
|
||||||
precision = "s"
|
|
||||||
# Only store measurements where the tag "cpu" matches the value "cpu0"
|
# Only store measurements where the tag "cpu" matches the value "cpu0"
|
||||||
[outputs.influxdb.tagpass]
|
[outputs.influxdb.tagpass]
|
||||||
cpu = ["cpu0"]
|
cpu = ["cpu0"]
|
||||||
|
|
Loading…
Reference in New Issue