Closed qdrop17 closed 1 year ago
next steps: look into why the agent settings are causing errors, May also want to ensure the global tags section doesn't cause issues.
I'm also trying to custom build telegraf for an embedded device. I was having this issue one day before:
Filtering packages failed: configured but unknown packages "agent.metric_batch_size,agent.flush_interval,agent.metric_buffer_limit,agent.collection_jitter,agent.flush_jitter,agent.debug,agent.round_interval,agent.logfile,agent.hostname,agent.omit_hostname,agent.interval,global_tags.service_name,global_tags.env,global_tags.team,agent.quiet"
After doing a git pull it's this error now:
Collecting plugins failed: open plugins/aggregators: no such file or directory
Why?
Collecting plugins failed: open plugins/aggregators: no such file or directory
Your first error is related, your second error is due to that folder not existing, which is unrelated.
+1 on this. I have a very simple telegraf.conf and its trying to parse [agent]. If I remove the entire [agent] section, the new custom build goes compile...
Also had to install go 1.2 as the "secrets" needed this - was using the ubuntu default of 1.8 beforehand.
@qdrop17 and/or @neilbriscoe can you please test PR #13604 and let me know if this fixes your issue!?
@qdrop17 and/or @neilbriscoe can you please test PR #13604 and let me know if this fixes your issue!?
That seems to have resolved the issue for me :+1:
Seems to have resolved for me. A work around was to remove the [agent] section, compile, then re-add the [agent] section back in to the telegraf.conf file... worked as well. Thanks.
Relevant telegraf.conf
Logs from Telegraf
System info
Ubuntu 23.04
Docker
Steps to reproduce
Expected behavior
We expect that the custom builder only tries to install input / ouput plugins. But for some strange reason it tries to parse the agent- and the global_tags sections as plugins too. Which obviously fails.
Actual behavior
Additional info
We can work around this issue by removing the first 31 lines of the telegraf.conf file before building:
RUN sed -i '1,31d' /etc/telegraf/telegraf.conf
Note that version 1.26 is working properly.