Telegraf does not seem to be running, intermittently ?!

Hi,

Sorry I’m going round and round with configuring InfluxDB the latest version configuring it with Telegraf, can’t seem to make it work with Grafana, I see Templating Errors.

First, for some Telegraf seems to be running sometimes, other times its not working.

I can see Data Source Working message in Grafana Web UI configuration check.

Grafana Logs

I have added Outputs.vSphere metrics in Telegraf, have added bucket.

Influx command interface does NOT seem to be work at all, I receive error
command not found…
**packages providing this file are **
influxdb
influxdb2
influxdb2-cli

Cannot find influxdb.conf file in /etc/influxdb/

At the moment I’m cluless on what to do next ?!

Thank You

Tutorials following

Looking for the Perfect Dashboard: InfluxDB, Telegraf and Grafana - Part I (Installing InfluxDB, Telegraf and Grafana on Ubuntu 20.04 LTS) - The Blog of Jorge de la Cruz

Looking for the Perfect Dashboard: InfluxDB, Telegraf and Grafana – Part XII (Native Telegraf Plugin for vSphere) - The Blog of Jorge de la Cruz

Just seen this in /var/log/message | grep telegraf

Jul 25 05:31:41 d-ifdb-nm telegraf[3600]: 2022-07-25T04:31:41Z E! [telegraf] Error running agent: Error loading config file /etc/telegraf/telegraf.conf: plugin outputs.influxdb: line 211: configuration specified the fields [“token” “organization” “bucket”], but they weren’t used

Redployed by downloading the rpm file, and found out there was no telegraf.service file in /etc/systemd/system, so I created one with its contents taken from telegraf/telegraf.service at master · influxdata/telegraf · GitHub then started systemctl daemon, then Telegraf.service, its up and running now.

Grafana still showing Templating error, unsure why…

HI @tryllz,
Welcome to the community! :slight_smile:
Not sure if we can help with the Grafana templating error. That might be a Grafana community question. We can help on the Telegraf side so before the error looks like the Telegraf config was not defined correctly. Though it seems you might have solved that. What do the Telegraf logs now currently look like?

Hi @Jay_Clifford

There has been nothing in telegraf logs since its up and running, I will recheck once I’m back on the system.

Thank You