upgrade-telegraf
Installation
SKILL.md
Upgrade Telegraf Version
This skill creates a new DALEC spec file for a new Telegraf release in the dalec-build-defs repository.
Overview
Telegraf specs live at specs/telegraf-agent/telegraf-agent-<VERSION>.yml. Each version is a standalone file copied from the latest existing spec with updated version-specific fields.
Step-by-step procedure
Step 1: Determine the target version
If the user did NOT provide a specific version, fetch the latest release from GitHub:
curl -sL https://api.github.com/repos/influxdata/telegraf/releases/latest | jq -r '.tag_name'
The tag is in the format v1.XX.Y. Strip the leading v to get the VERSION (e.g. 1.38.0).