[agent] interval = "30s" round_interval = true metric_batch_size = 1000 metric_buffer_limit = 10000 collection_jitter = "5s" flush_interval = "30s" flush_jitter = "5s" precision = "" debug = false quiet = false logfile = "" hostname = "" omit_hostname = false [[outputs.influxdb]] urls = ["http://"] database = "telegraf" skip_database_creation = true retention_policy = "30d" write_consistency = "any" timeout = "5s" username = "" password = "" namepass = ["*_30d"] [[inputs.cpu]] percpu = true totalcpu = true collect_cpu_time = false report_active = false [[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs", "devfs", "zfs", "nfs", "nfs4", "fuse.glusterfs", "iso9660"] [[inputs.diskio]] [[inputs.kernel]] [[inputs.mem]] [[inputs.processes]] [[inputs.swap]] [[inputs.system]] [[inputs.net]] [[inputs.netstat]] [[inputs.interrupts]] [[inputs.linux_sysctl_fs]] [[inputs.kernel_vmstat]] [[inputs.filestat]] files = ["/etc/passwd"] md5 = false [[inputs.logparser]] files = ["/var/log/messages"] from_beginning = false name_override = "messages" name_suffix = "_30d" [inputs.logparser.grok] patterns = ["%{SYSLOGBASE} %{MGREEDYDATA:messages}"] custom_patterns = ''' MGREEDYDATA %{GREEDYDATA}(EDAC|Reset adapter|Cable is unplugged|Unhandled sense code|ip_conntrack: table full, dropping packet|Out of Memory|SCSI hang|SCSI Error|SCSI disk error|I/O error|sense key Hardware Error|IOC is in FAULT state|rejecting I/O to dead device|page allocation failure|Device offlined|xfs_log_force|xfs_do_force_shutdown|delayed block allocation failed|Sense Key : Medium Error|Non-Fatal Error DRAM Controler|Link is Up|Link is Down|Link is up|Link is down|FAIL state entered|EXT2-fs error|EXT3-fs error|EXT4-fs error|Unable to handle kernel|mptscsi: ioc0: attempting task abort|allocation failed: out of vmalloc space|new active one|possible deadlock in kmem_allocr|Detected Hardware Unit Hang|mark as failed|link_down|HP Raid Controller Alert)%{GREEDYDATA} '''
[[inputs.logparser]] files = ["/var/log/messages"] from_beginning = false
[inputs.logparser.grok]
patterns = ['%{TIMESTAMP_ISO8601:timestamp:ts-"2006-01-02 15:04:05"} %{NUMBER:thread} \[%{LOGLEVEL:loglevel}\] %{GREEDYDATA:message}']
measurement = "mysql_error_log"
custom_pattern_files = []
custom_patterns = '''
'''
timezone = "Local"
[[inputs.mysql]] servers = ["telegraf:test00@tcp(127.0.0.1:3306)/?tls=false"] perf_events_statements_digest_text_limit = 120 perf_events_statements_limit = 250 perf_events_statements_time_limit = 86400 table_schema_databases = [] gather_table_schema = false gather_process_list = false gather_user_statistics = false gather_info_schema_auto_inc = false gather_innodb_metrics = false gather_slave_status = true gather_binary_logs = true gather_table_io_waits = false gather_index_io_waits = false gather_event_waits = false gather_file_events_stats = false gather_perf_events_statements = false interval_slow = "30m"
'기타' 카테고리의 다른 글
rsync 사용 (0) | 2019.02.11 |
---|---|
node.js 설치 (0) | 2018.11.26 |
vue (0) | 2018.07.09 |
grafana 구성 (0) | 2018.03.26 |
certbot (0) | 2018.02.02 |