-
Notifications
You must be signed in to change notification settings - Fork 215
/
Copy pathagentToml.conf
138 lines (117 loc) · 3.71 KB
/
agentToml.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[agent]
collection_jitter = "0s"
debug = true
flush_interval = "1s"
flush_jitter = "0s"
hostname = ""
interval = "10s"
logfile = "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log"
logtarget = "lumberjack"
metric_batch_size = 1000
metric_buffer_limit = 10000
omit_hostname = false
precision = ""
quiet = false
round_interval = false
[inputs]
[[inputs.cpu]]
collect_cpu_time = true
fieldpass = ["usage_idle", "usage_nice", "usage_guest", "time_active", "usage_active"]
interval = "10s"
percpu = true
report_active = true
totalcpu = false
[inputs.cpu.tags]
"aws:StorageResolution" = "true"
d1 = "foo"
d2 = "bar"
[[inputs.disk]]
fieldpass = ["free", "total", "used"]
ignore_fs = ["sysfs", "devtmpfs"]
interval = "60s"
mount_points = ["/", "/dev", "/sys"]
tagexclude = ["mode"]
[inputs.disk.tags]
d3 = "foo3"
d4 = "bar4"
[[inputs.diskio]]
fieldpass = ["reads", "writes", "read_time", "write_time", "io_time"]
interval = "60s"
[[inputs.logfile]]
destination = "cloudwatchlogs"
file_state_folder = "/opt/aws/amazon-cloudwatch-agent/logs/state"
[[inputs.logfile.file_config]]
file_path = "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log"
from_beginning = true
log_group_name = "amazon-cloudwatch-agent.log"
log_stream_name = "amazon-cloudwatch-agent.log"
pipe = false
retention_in_days = 5
timezone = "UTC"
trim_timestamp = true
[[inputs.logfile.file_config]]
auto_removal = true
file_path = "/opt/aws/amazon-cloudwatch-agent/logs/test.log"
from_beginning = true
log_group_name = "test.log"
log_stream_name = "test.log"
pipe = false
retention_in_days = -1
timezone = "UTC"
[[inputs.mem]]
fieldpass = ["used", "cached", "total"]
interval = "1s"
[inputs.mem.tags]
"aws:StorageResolution" = "true"
[[inputs.net]]
fieldpass = ["bytes_sent", "bytes_recv", "drop_in", "drop_out"]
interfaces = ["eth0"]
[inputs.net.tags]
"aws:StorageResolution" = "true"
[[inputs.netstat]]
fieldpass = ["tcp_established", "tcp_syn_sent", "tcp_close"]
interval = "60s"
[[inputs.processes]]
fieldpass = ["running", "sleeping", "dead"]
[inputs.processes.tags]
"aws:StorageResolution" = "true"
[[inputs.procstat]]
fieldpass = ["cpu_usage", "memory_rss"]
pid_file = "/var/run/example1.pid"
pid_finder = "native"
tagexclude = ["user", "result"]
[inputs.procstat.tags]
"aws:StorageResolution" = "true"
[[inputs.socket_listener]]
collectd_auth_file = "/etc/collectd/auth_file"
collectd_security_level = "encrypt"
collectd_typesdb = ["/usr/share/collectd/types.db"]
data_format = "collectd"
name_prefix = "collectd_"
service_address = "udp://127.0.0.1:25826"
[inputs.socket_listener.tags]
"aws:AggregationInterval" = "60s"
[[inputs.statsd]]
interval = "10s"
metric_separator = "_"
parse_data_dog_tags = true
service_address = ":8125"
[inputs.statsd.tags]
"aws:AggregationInterval" = "60s"
[[inputs.swap]]
fieldpass = ["used", "free", "used_percent"]
[inputs.swap.tags]
"aws:StorageResolution" = "true"
[outputs]
[[outputs.cloudwatch]]
[[outputs.cloudwatchlogs]]
endpoint_override = "https://logs-fips.us-west-2.amazonaws.com"
force_flush_interval = "60s"
log_stream_name = "LOG_STREAM_NAME"
region = "us-west-2"
role_arn = "log_role_arn_value_test"
[processors]
[[processors.ec2tagger]]
ec2_instance_tag_keys = ["aws:autoscaling:groupName"]
ec2_metadata_tags = ["ImageId", "InstanceId", "InstanceType"]
refresh_interval_seconds = "0s"