Error parsing /etc/telegraf/telegraf.conf when I try to configure apache module


I try to configure telegraf to collect apache metrcis.

I have my apache server-status ok when I make a curl directly from server.

But when in restart telegraf service I have an error:

E! [telegraf] Error running agent: Error parsing /etc/telegraf/telegraf.conf, line 1766: field corresponding to `urls’ is not defined in system.SystemStats

I search on the web and the influxdata community but I have no answer.

Anyone to help me to understand what’s wrong on my configuration?

My configuration:
I try to send data from apache server 1 to grafana/telegraf/influxdb on server 2


I hope the answer you received in the Slack channel was sufficient to answer this?

For those not in the slack channel, the # [[ inputs.prometheus]] line was still commented out, causing the error.


Thanks for the answer.

The # [[inputs.apache]] was commented.

After removing the # telegraf work fine.

Sorry for this ridiculous question.