Page MenuHomeVyOS Platform

Add more telegraf configuration
In progress, NormalPublicFEATURE REQUEST

Description

Summary

I have a small fleet of vehicles that each have a computer onboard gathering data. I want to use telegraf to gather data and offload it to a database. My issue is that I have limited internet data and it can be spotty so I would like to configure some of the values under the agent tag.

I want to be able to change the generated values

[agent]
  interval = "1m"
  collection_jitter = "10s"
  flush_interval = "10s"
  flush_jitter = "10s"
  debug = true

I was thinking this could be done with

set service monitoring telegraf configuration agent interval 60s.
set service monitoring telegraf configuration agent collection_jitter 10s.
set service monitoring telegraf configuration agent flush_interval 10s.
set service monitoring telegraf configuration agent flush_jitter 10s.
set service monitoring telegraf configuration agent debug true.

Use case

It would be useful to be able to change the default values for a variety of different usages, especially when internet data is limited.

Additional information

I am personally new to VyOs but i am a software developer. I do have a colleague that has done some changes to the codebase who I can get some advice from on how to implement this correctly so i can be accepted into the main codebase.

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)