question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add per-pool event counters

See original GitHub issue

Our current event counter support provides only an aggregated view across all pools. When having more than one pool, it’s important to get this information broken down by pool (especially with the new multiple hosts feature).

The main problem is how the event source for the pool would be identified by the user. We could do something like Npgsql.Pools.<hostname>.<port>.<database>: Npgsql.Pools.localhost.5432.TestDb.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rojicommented, Nov 22, 2021

From a quick look, I’m not sure it’s possible to have EventSource with dynamic names. The patterns I’m seeing always have the custom EventSource passing a static string.

0reactions
Brarcommented, Nov 29, 2021

I ended up splitting MultiHostConnectorPools into the individual ConnectorPools and using pool.Settings.ToStringWithoutPassword() as identifier for the pool.

Read more comments on GitHub >

github_iconTop Results From Across the Web

EventCounters in .NET Core
EventCounters are .NET APIs used for lightweight, cross-platform, and near real-time performance metric collection. EventCounters were added ...
Read more >
To set up Business Central performance counters
In the console pane toolbar, choose the Add button. In the Add Counters window, in the Select counters from computer drop-down list, choose...
Read more >
Adding Azure Log analytics Performance Counters - Billy York
Adding Default Counters. First, in your Azure Portal Log Analytics workspace, go to advanced settings, Data, Windows Performance Counters. Note ...
Read more >
How to use EventCounters in .NET Core
EventCounters can be consumed using EventLKisteners and EventPipes. You can consume EventCounters in two different ways, in-proc and out-of-proc ...
Read more >
One Piece TCG - Event Counters Guide - YouTube
COUNTER THE COUNTERS !! (Beat the Meta - Event Counters Guide - One Piece TCG). 3.2K views · 3 months ago ...more ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found