hassio-telegraf icon indicating copy to clipboard operation
hassio-telegraf copied to clipboard

Add Telegraf Agent Interval as configuration

Open CajuCLC opened this issue 3 years ago • 7 comments

Fix or Feature Request?

Feature for issue #50

What does this solve

Allows the user to change the Telegraf Agent interval in seconds.

CajuCLC avatar Sep 05 '22 07:09 CajuCLC

This looks good to me, have you tested locally? if so I am happy to merge

sabuto avatar Sep 05 '22 09:09 sabuto

@sabuto I started the container and I confirmed the interval was updated. But I don't have a way to test on Home Assistant itself.

CajuCLC avatar Sep 05 '22 10:09 CajuCLC

looking at it again, you would need to do a sed replace as when booting with a value in yaml it will just have the value.

see https://github.com/sabuto/hassio-telegraf/blob/f120494b6213abc520c5b2e764ef47cdc80932c8/telegraf/rootfs/etc/cont-init.d/telegraf.sh#L70

sabuto avatar Sep 05 '22 10:09 sabuto

Ah that's right. I forgot to add to that file. I can send a new commit in a few hours.

CajuCLC avatar Sep 05 '22 11:09 CajuCLC

@sabuto file has been updated.

CajuCLC avatar Sep 05 '22 17:09 CajuCLC

thanks for this, i will test locally and merge, therte are a couple of other updates i want to make too so will probably include them all in one go

sabuto avatar Sep 05 '22 19:09 sabuto

@sabuto any news? Thanks.

CajuCLC avatar Sep 19 '22 02:09 CajuCLC