telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

Add support for Windows Event Counters

Open sjwang90 opened this issue 4 years ago • 7 comments

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

Add support for Windows Event Counters

Use case:

From Microsoft Blog - Introducing diagnostics improvements in .NET Core 3.0:

Unlike the .NET Framework on Windows, .NET Core doesn’t emit perf counters. Instead, we had introduced a new way of emitting metrics in .NET Core via the EventCounter API.

EventCounters offer an improvement over Windows perf counters as these are now usable on all OSes where .NET Core is supported. Additionally, unlike perf counters, they are also usable in low privilege environments (like xcopy deployments)

sjwang90 avatar Oct 08 '20 22:10 sjwang90

I believe we were the origin of this request. If there's any interest in hearing our use case let us know.

perzizzle avatar Mar 15 '22 17:03 perzizzle

@perzizzle Can you share the use case on this issue? Thanks.

sjwang90 avatar Mar 16 '22 13:03 sjwang90

We are in the middle of re-writing .net framework applications (on windows) with performance counters to use .net core (on linux). In our application deployment automation, we had a process that allowed the application to define what performance counters were relevant and render a telegraf configuration to grab this data. It would be nice to add EventCounter support to telegraf so that the application could simply emit these metrics and telegraf could handle sending them to influx. The alternative is updating our application to use the http telegraf api directly to write metrics.

perzizzle avatar Mar 22 '22 13:03 perzizzle

@perzizzle Is there an existing plugin you think we could add this capability to?

sjwang90 avatar Mar 23 '22 16:03 sjwang90

@perzizzle is this issue still relevant?

srebhan avatar Feb 05 '24 16:02 srebhan

I don't know of an existing telegraf input plugin that can handle this data so I think so?

perzizzle avatar Feb 05 '24 22:02 perzizzle

OK, thanks! Do you know of an easy way to produce those counters or an easy source @perzizzle? So I could be kick-started... ;-)

srebhan avatar Feb 08 '24 18:02 srebhan