Page MenuHomeVyOS Platform

Support for configuring Telegraf "exec" input plugin
Open, WishlistPublicFEATURE REQUEST

Description

It would be useful to be able to configure Telegrafs' exec input plugin in order to implement custom monitoring.

I'd suggest something like:

service {
  monitoring {
    telegraf {
      input {
        exec test1 {
          command "/config/my_custom_monitoring_script.sh"
          format csv
        }

        exec test2 {
          command "/config/foo.sh"
          format influx
        }
      }
    }
  }
}

To generate a config fragment like

[[inputs.exec]]
  commands = [
    "/config/my_custom_monitoring_script.sh"
  ]
  data_format = "csv"

[[inputs.exec]]
  commands = [
    "/config/foo.sh"
  ]
  data_format = "influx"

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)