Skip to content

Commit a2d7341

Browse files
committed
documentation: added new Other Connections metric
1 parent c8ef482 commit a2d7341

File tree

1 file changed

+41
-9
lines changed

1 file changed

+41
-9
lines changed

documentation/metrics.md

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,7 @@ Default config:
22562256
</tr>
22572257
</table>
22582258

2259-
*Max Connections* maps `pg_settings max_connections`.
2259+
*Max Connections* maps `pg_settings.max_connections`.
22602260

22612261

22622262
2. **Active**
@@ -2298,7 +2298,7 @@ Default config:
22982298
<table>
22992299
<tr>
23002300
<th>Name</th>
2301-
<td>PostgreSQL: number of disabled</td>
2301+
<td>PostgreSQL: number of user disabled connections</td>
23022302
</tr>
23032303
<tr>
23042304
<th>Key</th>
@@ -2331,7 +2331,7 @@ Default config:
23312331
<table>
23322332
<tr>
23332333
<th>Name</th>
2334-
<td>PostgreSQL: number of fastpath function call</td>
2334+
<td>PostgreSQL: number of user fastpath function call connections</td>
23352335
</tr>
23362336
<tr>
23372337
<th>Key</th>
@@ -2364,7 +2364,7 @@ Default config:
23642364
<table>
23652365
<tr>
23662366
<th>Name</th>
2367-
<td>PostgreSQL: number of idle connections</td>
2367+
<td>PostgreSQL: number of user idle connections</td>
23682368
</tr>
23692369
<tr>
23702370
<th>Key</th>
@@ -2397,7 +2397,7 @@ Default config:
23972397
<table>
23982398
<tr>
23992399
<th>Name</th>
2400-
<td>PostgreSQL: number of idle in transaction connections</td>
2400+
<td>PostgreSQL: number of user idle in transaction connections</td>
24012401
</tr>
24022402
<tr>
24032403
<th>Key</th>
@@ -2430,7 +2430,7 @@ Default config:
24302430
<table>
24312431
<tr>
24322432
<th>Name</th>
2433-
<td>PostgreSQL: number of idle in transaction (aborted)</td>
2433+
<td>PostgreSQL: number of user idle in transaction (aborted) connections</td>
24342434
</tr>
24352435
<tr>
24362436
<th>Key</th>
@@ -2463,7 +2463,7 @@ Default config:
24632463
<table>
24642464
<tr>
24652465
<th>Name</th>
2466-
<td>PostgreSQL: number of total connections</td>
2466+
<td>PostgreSQL: number of user total connections</td>
24672467
</tr>
24682468
<tr>
24692469
<th>Key</th>
@@ -2487,7 +2487,7 @@ Default config:
24872487
</tr>
24882488
</table>
24892489

2490-
*Total* calculates as summa of all connections from `pg_stat_activity` with not null state.
2490+
*Total* calculates as summa of all connections from `pg_stat_activity` with `backend_type` represents user connections (*client backend, parallel worker*).
24912491

24922492

24932493
9. **Waiting**
@@ -2496,7 +2496,7 @@ Default config:
24962496
<table>
24972497
<tr>
24982498
<th>Name</th>
2499-
<td>PostgreSQL: number of waiting connections</td>
2499+
<td>PostgreSQL: number of user waiting connections</td>
25002500
</tr>
25012501
<tr>
25022502
<th>Key</th>
@@ -2522,6 +2522,38 @@ Default config:
25222522

25232523
*Waiting* calculates as summa of all connections from `pg_stat_activity` with not null state and wait_event_type.
25242524

2525+
10. **Other**
2526+
2527+
Zabbix item:
2528+
<table>
2529+
<tr>
2530+
<th>Name</th>
2531+
<td>PostgreSQL: number of other connections</td>
2532+
</tr>
2533+
<tr>
2534+
<th>Key</th>
2535+
<td>pgsql.connections[other]</td>
2536+
</tr>
2537+
<tr>
2538+
<th>Type</th>
2539+
<td>Numeric (float)</td>
2540+
</tr>
2541+
<tr>
2542+
<th>Units</th>
2543+
<td></td>
2544+
</tr>
2545+
<tr>
2546+
<th>Delta</th>
2547+
<td>As Is</td>
2548+
</tr>
2549+
<tr>
2550+
<th>Supported Version</th>
2551+
<td>10+</td>
2552+
</tr>
2553+
</table>
2554+
2555+
*Waiting* calculates as summa of all connections from `pg_stat_activity` with additional `backend_type`.
2556+
25252557
### Graphs
25262558

25272559
<table>

0 commit comments

Comments
 (0)