rossmcdonald / telegraf

Ansible role for installing, configuring, and maintaining Telegraf
138 stars 85 forks source link

Set defaults vars like default telegraf conf ? #6

Closed ahivert closed 8 years ago

ahivert commented 8 years ago

Is this normal to not have the same default vars as the default telegraf config ?

I install manually telegraf 0.12.1 but :

Default plugins

In your defaults, you have the option :

drop:
      - cpu_time

but in the default install is :

fielddrop:
    - time_*
disk plugin

In your defaults, you have the option :

mountpoints:
      - "/"

but in the default install mountpoints is commented and another is present :

ignore_fs:
    - tmpfs
    - devtmpfs
diskio or io plugin

In your defaults, you have the option :

skip_serial_number: "true"

but in the default install all options are commented

kernel plugin

This plugin is not in your conf but enabled in telegraf conf

Maybe all of this it's a choice ?

amnay-mo commented 8 years ago

This is no real issue. Just set them the way you want in your vars file.

rossmcdonald commented 8 years ago

I agree with @amnay-mo here. Telegraf's default configuration changes somewhat frequently, and I'd prefer that the defaults provide a good starting point for enabling/disabling your own plugins for your setup (not necessarily matching exactly what Telegraf provides as defaults).

I'm going to go ahead and close this, but let me know if you feel strongly about it and we can debate it further.