Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909627 - net-analyzer/telegraf-1.26.3-r1 no longer ships telegraf.conf
Summary: net-analyzer/telegraf-1.26.3-r1 no longer ships telegraf.conf
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-04 11:49 UTC by r7l
Modified: 2023-11-21 07:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.