forked from jperillo/Synology_dashboard_grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
output_influxdb_telegraf.conf
31 lines (27 loc) · 1.46 KB
/
output_influxdb_telegraf.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Telegraf Configuration for Synology NAS monitoring via SNMP
#
# These output definitions are only required if not already existing.
# This dashboard does not depend on the specific output configuration - only
# that an InfluxDB database is used.
###############################################################################
# OUTPUT PLUGINS #
###############################################################################
# Configuration for influxdb server to send metrics to
[[outputs.influxdb]]
## The full HTTP or UDP endpoint URL for your InfluxDB instance.
## Multiple urls can be specified as part of the same cluster,
## this means that only ONE of the urls will be written to each interval.
urls = ["http://xxx.xxx.xxx.xxx:8086"] # required
## The target database for metrics (telegraf will create it if not exists).
database = "telegraf" # required
## Retention policy to write to. Empty string writes to the default rp.
retention_policy = ""
## Write consistency (clusters only), can be: "any", "one", "quorum", "all"
write_consistency = "any"
## Write timeout (for the InfluxDB client), formatted as a string.
## If not provided, will default to 5s. 0s means no timeout (not recommended).
timeout = "5s"
username = "username"
password = "password"
## Set the user agent for HTTP POSTs (can be useful for log differentiation)
#user_agent = "telegraf"