Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 909627

Summary: net-analyzer/telegraf-1.26.3-r1 no longer ships telegraf.conf
Product: Gentoo Linux Reporter: r7l <gentoo>
Component: Current packagesAssignee: William Hubbs <williamh>
Status: UNCONFIRMED ---    
Severity: normal CC: norman
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description r7l 2023-07-04 11:49:20 UTC
Installing Telegraf currently will lead into a broken install without any further instructions. The most recent version does not ship a telegraf.conf file and fails to start because of it:

2023-07-04T11:34:34Z E! error loading config file /etc/telegraf/telegraf.conf: open /etc/telegraf/telegraf.conf: no such file or directory

Looks like there is no config file provided from upstream apart from autogenerating one for yourself. Would it be possible to call the binary, generate one and install it or at least mention the situation up on install?

This is how you're supposed to create a new config file:

telegraf config > telegraf.conf

Having a config in /etc/telegraf/telegraf.d doesn't help.

Reproducible: Always

Steps to Reproduce:
1. emerge telegraf
2. systemctl start telegraf
3. see error in logs
Comment 1 Norman Rieß 2023-11-21 07:38:15 UTC
Just stumbled upon the same problem. The config creation command helped a lot!
Thanks.