Configuring Infra Metrics Such as CPU, Memory & Disk by using Influxdata

HI Team,

We are using Telegraf Open source data for pulling Windows servers Infra metrics such as CPU, Memory & Disk by using Influxdata. But those metrics are not coming to our DataDog integrations as a metrics even though it is enabled in Custom Performance counters and working fine with DataDog.

Can anyone recommend what’s wrong with this??

Example:- Referring below Syntax from Influx DB public repository to getting this work in telegraf.config.

###############################################################################

INPUT PLUGINS

###############################################################################

[[inputs.win_perf_counters]]
UseWildcardsExpansion = true
CountersRefreshInterval = “5m”
[[inputs.win_perf_counters.object]]
ObjectName = “LogicalDisk”
Instances = [ “*” ]
Counters = [ “%Free Space” ]
Measurement = “win_disk”

Hello @SathishK,
What errors are you getting?
When you run telegraf with the -test flag do you get the expected output?

HI @Anaisdg,

We are not getting any infra metrics output nor any errors.

Any suggestion from anyone??

I really don’t know much about InfluxDB because I’m just a noob but from my SQL perspective I know thats significant to use the right syntax!

Following the description here I saw the line with Counters…!

Counters = [“% Idle Time”, “% Disk Read Time”, “% Disk Write Time”]

Your line was …

Counters = [ “%Free Space” ]

First try might be

Counters = [ “% Free Space” ]

Next step should be the troubleshooting in this *.md with: lodctr /r

Pls leave a message when your problem is solved with this or any other reply…

1 Like

HI WifiMoose,

This has been already tested and doesn’t worked.

[[inputs.win_perf_counters.object]]
ObjectName = “Processor”
Instances = [“*”]
Counters = [“% Idle Time”, “% Interrupt Time”, “% Privileged Time”, “% User Time”]
Measurement = “win_cpu”

I will try this in the next few days on my company laptop

I think it is a configuration problem. You write, you use Telegraf and InFluxDB and there is no data in DataDog.
Then I would either set DataDog as an additional output in Telegraf.conf or set InFluxDB so that data is sent from there to DataDog or DataDog fetches the data from InFluxDB.

Yesterday I installed telegraph at my home. At first the service didn’t work.
After I tested in PowerShell with the command C:"Program Files"\InfluxData\telegraf\telegraf.exe --config C:"Program Files"\InfluxData\telegraf\telegraf.conf --test if everything works , I got an error and specifying the line in the .conf!
After I corrected that, the service ran and delivered data.
I repeated the installation today on my company notebook and can also access my data there without any problems.

Basically, you should also ask yourself the following questions when troubleshooting:

Does the InFluxDB receive data?
Does the DataDog get data?
Is only InFluxDB defined as output in telegraf.conf?
Has Datadog been set as output?
Do you get the data directly from Telegraf to DataDog or from the InFluxDB?
What message do you get when you run the following command on the client:
C:"Program Files"\InfluxData\telegraf\telegraf.exe --config C:"Program Files"\InfluxData\telegraf\telegraf.conf --test

1 Like