Skip to content

Fix dotnet-counters command to explicitly specify Npgsql provider via --counters#467

Open
softworm wants to merge 1 commit into
npgsql:mainfrom
softworm:patch-1
Open

Fix dotnet-counters command to explicitly specify Npgsql provider via --counters#467
softworm wants to merge 1 commit into
npgsql:mainfrom
softworm:patch-1

Conversation

@softworm

@softworm softworm commented Jul 18, 2026

Copy link
Copy Markdown

The documentation currently shows a generic dotnet counters monitor command. However, by default, this tool only displays System.Runtime metrics and does not automatically discover Npgsql counters.
To successfully monitor Npgsql connection pool metrics, the provider name must be explicitly passed using the --counters parameter. Without this flag, the Npgsql metrics are not displayed even if the application is actively using the database.
This PR updates the command example to include --counters Npgsql, ensuring users can view the metrics correctly.
Before:

dotnet counters monitor Npgsql -p <pid>

After:

dotnet counters monitor --counters Npgsql -p <pid>

Updated command for monitoring Npgsql metrics with dotnet-counters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant