Table of Contents | ||||
---|---|---|---|---|
|
...
Input Plugins: https://github.com/snetsystems/telegraf#input-plugins
Parser Plugins: https://github.com/snetsystems/telegraf#parsers
Serializer Plugins: https://github.com/snetsystems/telegraf#serializers
Processor Plugins: https://github.com/snetsystems/telegraf#processor-plugins
Aggregator Plugins: https://github.com/snetsystems/telegraf#aggregator-plugins
Output Plugins: https://github.com/snetsystems/telegraf#output-plugins
[중요] 주의 사항
Note |
---|
CloudHub에서 Addon으로 지원하는 Cloud Service의 Instance 내부에서 동작하는 telegraf 설정은 반드시 미리 정의된 csp 코드는 다음과 같습니다. |
...
Code Block |
---|
# global_tags는 구분이 필요한 경우 기입 [global_tags] svc_type = "ch-mgmt" dc = "" rack = "" [agent] interval = "10s" round_interval = true metric_batch_size = 1_000 metric_buffer_limit = 10_000 collection_jitter = "0s" flush_interval = "10s" flush_jitter = "0s10s" precision = "" hostname = "" # if empty, this is assigned by OS hostname. omit_hostname = false [[outputs.influxdb]] urls = [ "http://{influxdb_url}:8086" ] database = "Default" retention_policy = "" write_consistency = "any" username = "" password = "" [[inputs.cpu]] percpu = false totalcpu = true collect_cpu_time = false report_active = false [[inputs.disk]] ignore_fs = [ "tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs" ] [[inputs.diskio]] [[inputs.kernel]] [[inputs.mem]] [[inputs.net]] [[inputs.processes]] [[inputs.procstat]] systemd_unit = "snet-salt-master" [[inputs.procstat]] systemd_unit = "snet-salt-api" [[inputs.procstat]] systemd_unit = "snet-salt-minion" [[inputs.procstat]] systemd_unit = "telegraf" [[inputs.swap]] [[inputs.system]] [[inputs.netstat]] [[inputs.influxdb]] urls = [ "http://{influxdb_url}:8086/debug/vars" ] [[inputs.kapacitor]] urls = [ "http://{kapacitor_url}:9094/kapacitor/v1/debug/vars" ] timeout = "5s" [[inputs.prometheus]] urls = [ "http://{etcd_url}:2382/metrics" ] metric_version = 2 |
...
Code Block |
---|
# global_tags는 구분이 필요한 경우 기입 [global_tags] svc_type = "ch-mgmt" dc = "" rack = "" [agent] interval = "10s" round_interval = true metric_batch_size = 1_000 metric_buffer_limit = 10_000 collection_jitter = "0s" flush_interval = "10s" flush_jitter = "0s10s" precision = "" hostname = "" # if empty, this is assigned by OS hostname. omit_hostname = false [[outputs.influxdb]] urls = [ "http://{influxdb_url}:8086" ] database = "Default" retention_policy = "" write_consistency = "any" username = "" password = "" [[inputs.cpu]] percpu = false totalcpu = true collect_cpu_time = false report_active = false [[inputs.disk]] ignore_fs = [ "tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs" ] [[inputs.diskio]] [[inputs.kernel]] [[inputs.mem]] [[inputs.net]] [[inputs.processes]] [[inputs.procstat]] systemd_unit = "snet-salt-minion" [[inputs.procstat]] systemd_unit = "telegraf" [[inputs.swap]] [[inputs.system]] [[inputs.netstat]] |
...
Code Block | ||
---|---|---|
| ||
[global_tags] dc = "five.sensory.lab" rack = "RACK-A-01" [agent] interval = "10s" round_interval = true metric_batch_size = 1_000 metric_buffer_limit = 10_000 collection_jitter = "0s" flush_interval = "10s" flush_jitter = "0s10s" precision = "" hostname = "" # if empty, this is assigned by OS hostname. omit_hostname = false [[outputs.influxdb]] urls = [ "http://{influxdb}:8086" ] database = "Default" retention_policy = "" write_consistency = "any" username = "" password = "" [[inputs.cpu]] percpu = false totalcpu = true collect_cpu_time = false report_active = false [[inputs.disk]] ignore_fs = [ "tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs" ] [[inputs.diskio]] [[inputs.kernel]] [[inputs.mem]] [[inputs.net]] [[inputs.processes]] [[inputs.procstat]] systemd_unit = "snet-salt-master" [[inputs.procstat]] systemd_unit = "snet-salt-api" [[inputs.procstat]] systemd_unit = "snet-salt-minion" [[inputs.procstat]] systemd_unit = "telegraf" [[inputs.swap]] [[inputs.system]] [[inputs.netstat]] [[inputs.influxdb]] urls = [ "http://k8s-master01:8086/debug/vars" ] [[inputs.kapacitor]] urls = [ "http://k8s-master01:9094/kapacitor/v1/debug/vars" ] timeout = "5s" [[inputs.prometheus]] urls = [ "http://k8s-master01:2382/metrics" ] metric_version = 2 [[inputs.docker]] endpoint = "unix:///var/run/docker.sock" container_names = [ ] timeout = "10s" perdevice = true total = false [[inputs.kube_inventory]] interval = "1m" url = "https://k8s-master01:6443" namespace = "" bearer_token_string = "" response_timeout = "5s" insecure_skip_verify = true [inputs.kube_inventory.tagdrop] pod_name = [ "cronjob-*" ] [[inputs.kubernetes]] url = "https://k8s-master01:10250" bearer_token_string = "" insecure_skip_verify = true [inputs.kubernetes.tagdrop] pod_name = [ "cronjob-*" ] [[inputs.cloudwatch]] region = "ap-northeast-2" access_key = "" secret_key = "" period = "5m" delay = "5m" interval = "5m" namespace = "AWS/ApplicationELB" statistic_include = [ "average" ] [[inputs.cloudwatch]] region = "ap-northeast-2" access_key = "" secret_key = "" period = "5m" delay = "5m" interval = "5m" namespace = "AWS/EC2" statistic_include = [ "average" ] [[inputs.cloudwatch]] region = "ap-northeast-2" access_key = "" secret_key = "" period = "5m" delay = "5m" interval = "5m" namespace = "AWS/Usage" statistic_include = [ "average" ] [[inputs.vsphere]] interval = "1m" vcenters = [ "https://{vcenter}/sdk" ] username = "" password = "" insecure_skip_verify = true force_discover_on_init = true datastore_metric_exclude = [ "*" ] cluster_metric_exclude = [ "*" ] datacenter_metric_exclude = [ "*" ] collect_concurrency = 5 discover_concurrency = 5 [[inputs.vsphere]] interval = "5m" vcenters = [ "https://{vcenter}/sdk" ] username = "" password = "" insecure_skip_verify = true force_discover_on_init = true host_metric_exclude = [ "*" ] vm_metric_exclude = [ "*" ] max_query_metrics = 256 collect_concurrency = 3 [[processors.rename]] namepass = [ "kubernetes_ingress" ] [[processors.rename.replace]] tag = "host" dest = "ingress_host"" |
...