Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
49
plugins/outputs/remotefile/sample.conf
Normal file
49
plugins/outputs/remotefile/sample.conf
Normal file
|
@ -0,0 +1,49 @@
|
|||
# Send telegraf metrics to file(s) in a remote filesystem
|
||||
[[outputs.remotefile]]
|
||||
## Remote location according to https://rclone.org/#providers
|
||||
## Check the backend configuration options and specify them in
|
||||
## <backend type>[,<param1>=<value1>[,...,<paramN>=<valueN>]]:[root]
|
||||
## for example:
|
||||
## remote = 's3,provider=AWS,access_key_id=...,secret_access_key=...,session_token=...,region=us-east-1:mybucket'
|
||||
## By default, remote is the local current directory
|
||||
# remote = "local:"
|
||||
|
||||
## Files to write in the remote location
|
||||
## Each file can be a Golang template for generating the filename from metrics.
|
||||
## See https://pkg.go.dev/text/template for a reference and use the metric
|
||||
## name (`{{.Name}}`), tag values (`{{.Tag "name"}}`), field values
|
||||
## (`{{.Field "name"}}`) or the metric time (`{{.Time}}) to derive the
|
||||
## filename.
|
||||
## The 'files' setting may contain directories relative to the root path
|
||||
## defined in 'remote'.
|
||||
files = ['{{.Name}}-{{.Time.Format "2006-01-02"}}']
|
||||
|
||||
## Use batch serialization format instead of line based delimiting.
|
||||
## The batch format allows for the production of non-line-based output formats
|
||||
## and may more efficiently encode metrics.
|
||||
# use_batch_format = false
|
||||
|
||||
## Cache settings
|
||||
## Time to wait for all writes to complete on shutdown of the plugin.
|
||||
# final_write_timeout = "10s"
|
||||
|
||||
## Time to wait between writing to a file and uploading to the remote location
|
||||
# cache_write_back = "5s"
|
||||
|
||||
## Maximum size of the cache on disk (infinite by default)
|
||||
# cache_max_size = -1
|
||||
|
||||
## Forget files after not being touched for longer than the given time
|
||||
## This is useful to prevent memory leaks when using time-based filenames
|
||||
## as it allows internal structures to be cleaned up.
|
||||
## Note: When writing to a file after is has been forgotten, the file is
|
||||
## treated as a new file which might cause file-headers to be appended
|
||||
## again by certain serializers like CSV.
|
||||
## By default files will be kept indefinitely.
|
||||
# forget_files_after = "0s"
|
||||
|
||||
## Data format to output.
|
||||
## Each data format has its own unique set of configuration options, read
|
||||
## more about them here:
|
||||
## https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md
|
||||
data_format = "influx"
|
Loading…
Add table
Add a link
Reference in a new issue