Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing IIS net_clr appPoolCounters #41352

Closed
AlexDF2017 opened this issue Oct 21, 2024 · 7 comments
Closed

missing IIS net_clr appPoolCounters #41352

AlexDF2017 opened this issue Oct 21, 2024 · 7 comments
Assignees
Labels
Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team

Comments

@AlexDF2017
Copy link

Hi all, on a fresh installation of metricbeat 7.17.24 under Windows Server 2022, IIS metricbeat module activated, we have the following repeating errors in metricbeat logs:

2024-10-21T20:05:42.285+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Exceps Thrown
2024-10-21T20:05:42.285+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Filters / sec
2024-10-21T20:05:42.288+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Exceps Thrown / sec
2024-10-21T20:05:42.288+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\Throw To Catch Depth / sec
2024-10-21T20:05:42.290+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Finallys / sec

It seems that all net_clr appPoolCounters aren't available on OS, how to fix? No particular requirement is reported on metricbeat installation documentation for IIS monitoring.

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 21, 2024
@lucian-ioan lucian-ioan self-assigned this Oct 23, 2024
@lucian-ioan
Copy link
Contributor

Hi @AlexDF2017,

Firstly, make sure ASP.NET is installed as this might be similar to: elastic/integrations#7992

Let me know if you still encounter the error afterwards.

@AlexDF2017
Copy link
Author

Hi @lucian-ioan , sorry but we had already installed the required features & roles, the same as indicated in elastic/integrations#7992. We rebooted the server after installation to be sure, but the problem is the same,

To confirm:

Image
Image

2024-10-23T13:56:38.714+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Finallys / sec
2024-10-23T13:56:38.717+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Exceps Thrown
2024-10-23T13:56:38.717+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Filters / sec
2024-10-23T13:56:38.719+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\# of Exceps Thrown / sec
2024-10-23T13:56:38.719+0200	ERROR	[application_pool]	application_pool/reader.go:106	Element not found.failed to expand counter path (query= "%v")\.NET CLR Exceptions(w3wp*)\Throw To Catch Depth / sec

@lucian-ioan
Copy link
Contributor

Thanks for confirming, I have already tried to replicate this with our existing virtual machine running IIS with no luck.

I'll try setting up a new VM from scratch and come back to you on this.

@ishleenk17 ishleenk17 removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 23, 2024
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 23, 2024
@lucian-ioan lucian-ioan added the Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team label Oct 30, 2024
@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 30, 2024
@yomduf
Copy link

yomduf commented Nov 7, 2024

Hello @lucian-ioan , were you able to reproduce the problem ?

@lucian-ioan
Copy link
Contributor

Hi @yomduf

We will likely change the beats code so such errors are no longer logged.

The errors you are encountering in the Metricbeat logs occur because the .NET CLR Exceptions performance counters are being queried, but they are not available for the w3wp process in your environment.

This is different on servers where IIS runs application pools with the .NET CLR Version set to "v4.0" instead of "No Managed Code" as on those servers the .NET CLR counter categories do show w3wp.

@yomduf
Copy link

yomduf commented Nov 12, 2024

Thanks @lucian-ioan !

@lucian-ioan
Copy link
Contributor

This was solved in #42274. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team
Projects
None yet
Development

No branches or pull requests

4 participants