[global_tags] [agent] interval = "10s" round_interval = true metric_batch_size = 1000 metric_buffer_limit = 10000 collection_jitter = "5s" flush_interval = "30s" flush_jitter = "0s" precision = "" debug = false quiet = false logfile = "" omit_hostname = false [[outputs.influxdb]] urls = ["http://{{ telegraf.outputs.influxdb.host }}:{{ telegraf.outputs.influxdb.port }}"] database = "{{ telegraf.outputs.influxdb.database }}" [[inputs.cpu]] percpu = true totalcpu = true collect_cpu_time = true report_active = true [[inputs.disk]] ignore_fs = ["tmpfs", "devtmpfs", "devfs", "overlay", "aufs", "squashfs"] [[inputs.diskio]] [[inputs.kernel]] [[inputs.kernel_vmstat]] [[inputs.mem]] [[inputs.processes]] [[inputs.swap]] [[inputs.system]] [[inputs.net]] {% for entry in telegraf.inputs.cloudwatch %} [[inputs.cloudwatch]] region = "{{ entry.region }}" access_key = "{{ entry.access_key }}" secret_key = "{{ entry.secret_key }}" period = "{{ entry.period }}" interval = "{{ entry.interval }}" namespace = "{{ entry.namespace }}" ratelimit = {{ entry.ratelimit }} statistic_include = {{ entry.statistic_include }} cache_ttl = "{{ entry.cache_ttl }}" {% endfor %} [[inputs.redis]] servers = {{ telegraf.inputs.redis.servers }} [[inputs.postgresql]] address = "{{ telegraf.inputs.postgresql.address }}" ignored_databases = ["template0", "template1"] [[inputs.haproxy]] servers = ["socket:/run/haproxy/haproxy-stats.sock"] [[inputs.unbound]] server = "localhost:8953" thread_as_tag = true # [[inputs.http_listener_v2]] # service_address = ":8080" # methods = ["POST"] # path = "/" # data_source = "body" # data_format = "json" # json_query = "csp-report" # json_string_fields = ["document-uri", "referrer", "violated-directive", "original-policy","blocked-uri"] # json_name_key = "csp_reports" [[inputs.varnish]] stats = ["*"] #[[inputs.fail2ban]] {% if inventory_hostname == "n3" %} [[inputs.minecraft]] server = "{{ hostvars['n3']['ansible_ens10']['ipv4']['address'] }}" port = "25575" password = "{{ vault_minecraft.rcon.password }}" {% endif %} #[[inputs.syslog]] {% if inventory_hostname == "n1" %} [[inputs.wireguard]] devices = ["wg0"] {% endif %} {% if inventory_hostname == "n2" %} [[inputs.file]] files = ["/mnt/seedbox/.config/stats.json"] data_format = "json" {% endif %}