You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/diagnostics/metrics.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,55 @@ Name | Type | Unit | Description
41
41
`db.client.connections.idle.max` | UpDownCounter | `{connection}` | The maximum number of idle open connections allowed; this corresponds to `MaximumPoolSize` in the connection string.
42
42
`db.client.connections.idle.min` | UpDownCounter | `{connection}` | The minimum number of idle open connections allowed; this corresponds to `MinimumPoolSize` in the connection string.
43
43
`db.client.connections.max` | UpDownCounter | `{connection}` | The maximum number of open connections allowed; this corresponds to `MaximumPoolSize` in the connection string.
44
+
45
+
## Supported Tags
46
+
47
+
Name | Description
48
+
--- | ---
49
+
`pool.name` | The name of the connection pool (see below).
50
+
`state` | `idle` or `used`; this tag is used with the `db.client.connections.usage` instrument.
51
+
52
+
## Connection Pool Name
53
+
54
+
A connection pool name can be specified by one of the following means:
55
+
56
+
### UseName
57
+
58
+
The `MySqlDataSourceBuilder.UseName` method can be used to specify a name for the connection pool:
Use the `AddKeyedMySqlDataSource` method to register a `MySqlDataSource` as a [keyed service](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8#keyed-di-services).
76
+
If the service key is a string, it will automatically be used as the `MySqlDataSource` name.
0 commit comments