[global_tags]


# Configuration for telegraf agent
[agent]
    interval = "60s"
    debug = false
    hostname = "{{ inventory_hostname }}"
    round_interval = true
    flush_interval = "10s"
    flush_jitter = "0s"
    collection_jitter = "0s"
    metric_batch_size = 1000
    metric_buffer_limit = 10000
    quiet = false
    logfile = ""
    omit_hostname = false

###############################################################################
#                                  OUTPUTS                                    #
###############################################################################

[[outputs.influxdb]]
    urls = [ "https://influxdb.nereide.fr" ]
    username = "telegraf"
    password = "{{ vault_telegraf_nrd_passwd }}"

{% if "visio.imio.be" == inventory_hostname  %}
 [[outputs.influxdb]]   
    urls = [ "https://influxdb.gra1.metrics.ovh.net" ]
    username = "metrics"
    password = "{{ vault_telegraf_cl_passwd }}"
{% endif %}

###############################################################################
#                                  INPUTS                                     #
###############################################################################

[[inputs.cpu]]
  percpu = true
  totalcpu = true
  fielddrop = ["time_*"]

[[inputs.disk]]
  ignore_fs = ["tmpfs", "devtmpfs", "none", "iso9660", "overlay", "aufs", "squashfs"]

[[inputs.diskio]]

[[inputs.kernel]]

[[inputs.mem]]

[[inputs.swap]]

[[inputs.net]]
  fieldpass = [ "bytes*" ]

[[inputs.netstat]]

[[inputs.processes]]

[[inputs.system]]
