Difference between revisions of "/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.toml"
Jump to navigation
Jump to search
(Created page with "{{lc}} == See also == * {{amazon-cloudwatch-agent-ctl}} * {{amazon-cloudwatch-agent}} Category:AWS") |
|||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | <pre> | ||
+ | [agent] | ||
+ | collection_jitter = "0s" | ||
+ | debug = false | ||
+ | flush_interval = "1s" | ||
+ | flush_jitter = "0s" | ||
+ | hostname = "" | ||
+ | interval = "60s" | ||
+ | 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.disk]] | ||
+ | fieldpass = ["used_percent"] | ||
+ | interval = "60s" | ||
+ | tagexclude = ["mode"] | ||
+ | [inputs.disk.tags] | ||
+ | metricPath = "metrics" | ||
+ | |||
+ | [[inputs.logfile]] | ||
+ | destination = "cloudwatchlogs" | ||
+ | file_state_folder = "/opt/aws/amazon-cloudwatch-agent/logs/state" | ||
+ | |||
+ | [[inputs.logfile.file_config]] | ||
+ | file_path = "." | ||
+ | from_beginning = true | ||
+ | log_group_name = "." | ||
+ | log_stream_name = "i-00a5e88bfa0d571b9" | ||
+ | pipe = false | ||
+ | retention_in_days = -1 | ||
+ | [inputs.logfile.tags] | ||
+ | metricPath = "logs" | ||
+ | |||
+ | [[inputs.mem]] | ||
+ | fieldpass = ["used_percent"] | ||
+ | interval = "60s" | ||
+ | [inputs.mem.tags] | ||
+ | metricPath = "metrics" | ||
+ | |||
+ | [[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" | ||
+ | metricPath = "metrics" | ||
+ | |||
+ | [outputs] | ||
+ | |||
+ | [[outputs.cloudwatch]] | ||
+ | force_flush_interval = "60s" | ||
+ | namespace = "CWAgent" | ||
+ | region = "eu-west-3" | ||
+ | tagexclude = ["host", "metricPath"] | ||
+ | [outputs.cloudwatch.tagpass] | ||
+ | metricPath = ["metrics"] | ||
+ | |||
+ | [[outputs.cloudwatchlogs]] | ||
+ | force_flush_interval = "5s" | ||
+ | log_stream_name = "i-00a5e88bfa0d571b9" | ||
+ | region = "eu-west-3" | ||
+ | tagexclude = ["metricPath"] | ||
+ | [outputs.cloudwatchlogs.tagpass] | ||
+ | metricPath = ["logs"] | ||
+ | |||
+ | [processors] | ||
+ | |||
+ | [[processors.ec2tagger]] | ||
+ | ec2_metadata_tags = ["InstanceId"] | ||
+ | refresh_interval_seconds = "0s" | ||
+ | [processors.ec2tagger.tagpass] | ||
+ | metricPath = ["metrics"] | ||
+ | |||
+ | </pre> | ||
Revision as of 09:05, 25 October 2023
[agent] collection_jitter = "0s" debug = false flush_interval = "1s" flush_jitter = "0s" hostname = "" interval = "60s" 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.disk]] fieldpass = ["used_percent"] interval = "60s" tagexclude = ["mode"] [inputs.disk.tags] metricPath = "metrics" [[inputs.logfile]] destination = "cloudwatchlogs" file_state_folder = "/opt/aws/amazon-cloudwatch-agent/logs/state" [[inputs.logfile.file_config]] file_path = "." from_beginning = true log_group_name = "." log_stream_name = "i-00a5e88bfa0d571b9" pipe = false retention_in_days = -1 [inputs.logfile.tags] metricPath = "logs" [[inputs.mem]] fieldpass = ["used_percent"] interval = "60s" [inputs.mem.tags] metricPath = "metrics" [[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" metricPath = "metrics" [outputs] [[outputs.cloudwatch]] force_flush_interval = "60s" namespace = "CWAgent" region = "eu-west-3" tagexclude = ["host", "metricPath"] [outputs.cloudwatch.tagpass] metricPath = ["metrics"] [[outputs.cloudwatchlogs]] force_flush_interval = "5s" log_stream_name = "i-00a5e88bfa0d571b9" region = "eu-west-3" tagexclude = ["metricPath"] [outputs.cloudwatchlogs.tagpass] metricPath = ["logs"] [processors] [[processors.ec2tagger]] ec2_metadata_tags = ["InstanceId"] refresh_interval_seconds = "0s" [processors.ec2tagger.tagpass] metricPath = ["metrics"]
See also
Advertising: