-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtelegraf.conf.j2
42 lines (32 loc) · 1021 Bytes
/
telegraf.conf.j2
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
32
33
34
35
36
37
38
39
40
41
42
# Telegraf configuration
# Configuration for influxdb server to send metrics to
[[outputs.influxdb]]
# The full HTTP endpoint URL for your InfluxDB instance
url = "http://{{ primary_log_server_address }}:8086" # required.
# The target database for metrics. This database must already exist
database = "{{ influxdb_dbname }}" # required.
username = "root"
password = "root"
# Configuration for telegraf itself
[agent]
# Default data collection interval for all inputs
interval = "10s"
debug = true
# INPUT PLUGINS
# ------------------------------------------------
# Read metrics about cpu usage
[[inputs.cpu]]
percpu = true
totalcpu = true
# Read metrics about disk usage by mount point
[[inputs.disk]]
# no configuration
# Read metrics about disk IO by device
[[inputs.diskio]]
# no configuration
# Read metrics about memory usage
[[inputs.mem]]
# no configuration
[[inputs.mysql]]
servers = ["root:@tcp(127.0.0.1:3306)/"]
drop = ["mysql_innodb", "mysql_handler", "mysql_commands"]