Skip to content

Commit

Permalink
Tweak event counter display info (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Engel authored Jun 1, 2021
1 parent 0578fbf commit ae2d731
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,61 +67,61 @@ protected override void EventCommandMethodCall(EventCommandEventArgs command)
_activeHardConnections = _activeHardConnections ??
new PollingCounter("active-hard-connections", this, () => _activeHardConnectionsCounter)
{
DisplayName = "Actual active connections are made to servers",
DisplayName = "Actual active connections currently made to servers",
DisplayUnits = "count"
};

_hardConnectsPerSecond = _hardConnectsPerSecond ??
new IncrementingPollingCounter("hard-connects", this, () => _hardConnectsCounter)
{
DisplayName = "Actual connections are made to servers",
DisplayName = "Actual connection rate to servers",
DisplayUnits = "count / sec",
DisplayRateTimeScale = TimeSpan.FromSeconds(1)
};

_hardDisconnectsPerSecond = _hardDisconnectsPerSecond ??
new IncrementingPollingCounter("hard-disconnects", this, () => _hardDisconnectsCounter)
{
DisplayName = "Actual disconnections are made to servers",
DisplayName = "Actual disconnection rate from servers",
DisplayUnits = "count / sec",
DisplayRateTimeScale = TimeSpan.FromSeconds(1)
};

_activeSoftConnections = _activeSoftConnections ??
new PollingCounter("active-soft-connects", this, () => _activeSoftConnectionsCounter)
{
DisplayName = "Active connections got from connection pool",
DisplayName = "Active connections retrieved from the connection pool",
DisplayUnits = "count"
};

_softConnects = _softConnects ??
new IncrementingPollingCounter("soft-connects", this, () => _softConnectsCounter)
{
DisplayName = "Connections got from connection pool",
DisplayName = "Rate of connections retrieved from the connection pool",
DisplayUnits = "count / sec",
DisplayRateTimeScale = TimeSpan.FromSeconds(1)
};

_softDisconnects = _softDisconnects ??
new IncrementingPollingCounter("soft-disconnects", this, () => _softDisconnectsCounter)
{
DisplayName = "Connections returned to the connection pool",
DisplayName = "Rate of connections returned to the connection pool",
DisplayUnits = "count / sec",
DisplayRateTimeScale = TimeSpan.FromSeconds(1)
};

_numberOfNonPooledConnections = _numberOfNonPooledConnections ??
new PollingCounter("number-of-non-pooled-connections", this, () => _nonPooledConnectionsCounter)
{
DisplayName = "Number of connections are not using connection pooling",
DisplayUnits = "count / sec"
DisplayName = "Number of connections not using connection pooling",
DisplayUnits = "count"
};

_numberOfPooledConnections = _numberOfPooledConnections ??
new PollingCounter("number-of-pooled-connections", this, () => _pooledConnectionsCounter)
{
DisplayName = "Number of connections are managed by connection pooler",
DisplayUnits = "count / sec"
DisplayName = "Number of connections managed by the connection pool",
DisplayUnits = "count"
};

_numberOfActiveConnectionPoolGroups = _numberOfActiveConnectionPoolGroups ??
Expand Down Expand Up @@ -162,7 +162,7 @@ protected override void EventCommandMethodCall(EventCommandEventArgs command)
_numberOfFreeConnections = _numberOfFreeConnections ??
new PollingCounter("number-of-free-connections", this, () => _freeConnectionsCounter)
{
DisplayName = "Number of free-ready connections",
DisplayName = "Number of ready connections in the connection pool",
DisplayUnits = "count"
};

Expand Down Expand Up @@ -241,7 +241,7 @@ internal override void ExitNonPooledConnection()
}

/// <summary>
/// The number of connections that are managed by the connection pooler
/// The number of connections that are managed by the connection pool
/// </summary>
[NonEvent]
internal override void EnterPooledConnection()
Expand All @@ -250,7 +250,7 @@ internal override void EnterPooledConnection()
}

/// <summary>
/// The number of connections that are managed by the connection pooler
/// The number of connections that are managed by the connection pool
/// </summary>
[NonEvent]
internal override void ExitPooledConnection()
Expand Down

0 comments on commit ae2d731

Please sign in to comment.