Skip to content

How do I discover what counters are available for dotnet-counters? #79372

Open
@samsp-msft

Description

@samsp-msft

If a tree falls in a forest and nobody is listening, does it make a sound?

If you need to upfront register your ears to listen to the sound of Tree.Falling then that question becomes more complicated.

dotnet-counters has a List mode which appears to be a static list, a la help. This is better than nothing, but it doesn't help much as I don't think it has been updated since 3.1. For example, we added a bunch of counters for networking, that I don't believe are listed.

There should be a mode of dotnet-counters that will adapt itself and listen to any counters that are registered as the application is run. For example, something like:

dotnet-counters monitor -process-id 12345 -all-counters

Is this the most performance efficient way of running the application - no - but it'll make it much easier for developers/SRE to see what counters are available, and for when they are writing their own counters to be able to diagnose if they have made typos etc.

Metadata

Metadata

Labels

area-System.DiagnosticsenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions