I have already installed InfluxDB on my Ubuntu instance. After that, I installed Telegraf. But when I checked the status of Telegraf, it said: Failed to Start Telegraf
See below image for better understanding.
When i run systemctl start telegraf command then it gives this output:
Job for telegraf.service failed because the control process exited
with error code. See “systemctl status telegraf.service” and
“journalctl -xe” for details.
Here are the installation commands for Telegraf that i executed:
curl -s https://repos.influxdata.com/influxdata-archive.key > influxdata-archive.key
echo '943666881a1b8d9b849b74caebf02d3465d6beb716510d86a39f6c8e8dac7515 influxdata-archive.key' | sha256sum -c && cat influxdata-archive.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive.gpg > /dev/null
echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list
sudo apt-get update && sudo apt-get install telegraf
which is as per official documentation.
Now, how can I start the Telegraf service? I need it to run and export my metrics to InfluxDB.