How to get Telegraf version from master number?


When trying to get the Telegraf version that I complied from this repo I get this output:

$ telegraf --version
Telegraf unknown (git: master 9ed9a632)

How can I figure out the actual Telegraf version?

I compiled the Docker image by doing this, as stated on the repo:

git clone
cd telegraf
make docker-image

Thank you.

@mohsin106 When you build Telegraf from source, it’s not tagged with a version number. You’re just building from the current state of the master branch, which right now (March 8, 2021) is 1.17.3 plus some other additions that will be officially released as 1.17.4 or as part of 1.18.0.