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/enterprise_edition/control_plane/self-hosting.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,11 +17,11 @@ The control plane has two dependencies:
17
17
1. A PostgreSQL database used to store historical metrics, query statistics, users and other metadata
18
18
2. A Redis database, used for synchronization and real-time metrics
19
19
20
-
If you're using our [Helm chart](#kubernetes), both are provided automatically.
20
+
If you're using our [Helm chart](#kubernetes), Redis is deployed automatically, while the PostgreSQL database has to be created manually.
21
21
22
22
### Kubernetes
23
23
24
-
If you're running PgDog in Kubernetes using our [Helm chart](../../installation.md#kubernetes), you can deploy the control plane into the same cluster using our Enterprise Helm chart:
24
+
If you're already running PgDog in Kubernetes using our [Helm chart](../../installation.md#kubernetes), you can deploy the control plane into the same cluster using our Enterprise Helm chart:
If you're using the [Helm chart](#kubernetes), all variables except `DATABASE_URL` are generated from settings in `values.yaml` and don't need to be configured manually.
54
+
52
55
The control plane is configured via environment variables. The following variables are required for it to work correctly:
53
56
54
57
| Environment variable | Description | Example |
@@ -58,8 +61,7 @@ The control plane is configured via environment variables. The following variabl
58
61
| `REDIS_URL` | URL pointing to the Redis database used for synchronization. | `redis://127.0.0.1/0` |
59
62
| `FRONTEND_URL` | The URL where the frontend application is hosted. This defaults to `ingress.host` if you're using the Helm chart. | `http://pgdog.internal` |
60
63
61
-
!!! note "Helm chart"
62
-
If you're using the [Helm chart](#kubernetes), all variables except `DATABASE_URL` are generated from settings in `values.yaml` and don't need to be configured manually.
Copy file name to clipboardExpand all lines: docs/enterprise_edition/metrics.md
+32-31Lines changed: 32 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,68 +40,69 @@ Dashboard metrics are distinct from the [OpenMetrics endpoint](../features/metri
40
40
41
41
| Metric | Description |
42
42
|--------|-------------|
43
-
| Clients | Total number of clients connected to PgDog. |
43
+
| Clients | Total number of connected clients. |
44
44
| Server Connections | Total server connections open across all pools. |
45
-
| Connection Rate (cps) |New server connections established from PgDog to PostgreSQL per second. |
46
-
| Waiting | Clients currently queued waiting for a server connection. |
47
-
| Max Wait (ms) |Age of the oldest client currently waiting for a connection. Resets to zero when the queue drains. Useful for spotting individual outlier waits. |
48
-
| Idle Connections |Server connections open and available for use. |
49
-
| Idle in Transaction Connections |Server connections currently idle inside an open transaction. Historical chart data for this metric is not currently tracked and will show zero. |
50
-
| Checked Out |Server connections currently serving an active client request. |
45
+
| Connection Rate (cps) |Average number of connections established to servers per second. |
46
+
| Waiting | Clients waiting for a connection from a pool. |
47
+
| Max Wait (ms) |How long the first (oldest) client in the queue has waited, in milliseconds. |
48
+
| Idle Connections |Servers available for clients to use. |
49
+
| Idle in Transaction Connections |Servers currently idle in transaction. |
50
+
| Checked Out |Servers currently serving client requests. |
51
51
| Instances | Number of PgDog instances currently connected to the control plane. |
52
52
53
53
### Errors
54
54
55
55
| Metric | Description |
56
56
|--------|-------------|
57
-
| Errors |Client-facing errors per second across all pools. |
58
-
| Server Errors | Errors reported by upstream PostgreSQL servers per second. |
57
+
| Errors |Errors that connections in the pool have experienced. |
58
+
| Server Errors | Errors returned by server connections. |
59
59
60
60
### Query throughput
61
61
62
62
| Metric | Description |
63
63
|--------|-------------|
64
-
| Queries |Queries executed through PgDog per second. |
65
-
| Transactions |Transactions completed per second. |
66
-
| Transaction Rate (tps) |Rolling average transactions per second. |
67
-
| Query Rate (qps) |Rolling average queries per second. |
68
-
| Blocked Queries | Queries blocked by lock contention per second. |
64
+
| Queries |Total number of executed queries. |
65
+
| Transactions |Total number of executed transactions. |
66
+
| Transaction Rate (tps) |Average number of executed transactions per statistics period. |
67
+
| Query Rate (qps) |Average number of executed queries per statistics period. |
68
+
| Blocked Queries | Queries blocked by lock contention. |
69
69
70
70
### Timing and latency
71
71
72
72
| Metric | Description |
73
73
|--------|-------------|
74
-
| Query Time (ms) | Total query execution time per second. Does not include connection wait. |
75
-
| Transaction Time (ms) | Total transaction execution time per second. Includes idle-in-transaction time; does not include connection wait. |
76
-
| Idle in Transaction Time (ms) |Time per second spent idle inside open transactions. Elevated values indicate clients holding transactions open without executing queries. |
77
-
| Wait Time (ms) | Total time all clients spent waiting for a server connection per second. Unlike Max Wait, this stays elevated when many clients are waiting briefly. |
78
-
| Query Response Time (ms) |Full client-observed query latency per second, including connection wait time. |
79
-
| Transaction Response Time (ms) |Full client-observed transaction latency per second, including connection wait time. |
74
+
| Query Time (ms) | Total time spent executing queries. |
75
+
| Transaction Time (ms) | Total time spent executing transactions. |
76
+
| Idle in Transaction Time (ms) |Total time spent idling inside transactions. |
77
+
| Wait Time (ms) | Total time clients spent waiting for a server connection. |
78
+
| Query Response Time (ms) |Total client-observed query latency, including connection wait time. |
79
+
| Transaction Response Time (ms) |Total client-observed transaction latency, including connection wait time. |
80
80
81
81
!!! note "Max Wait vs Wait Time"
82
-
**Max Wait** captures the worst single waiter at one instant — it drops to zero the moment that client is served.
83
-
**Wait Time** measures total queuing burden per second across all clients — it stays elevated when many clients are waiting briefly.
82
+
**Max Wait** captures the worst single waiter at one instant. It drops to zero the moment that client is served.
83
+
84
+
**Wait Time** measures total queuing burden across all clients. It stays elevated when many clients are waiting briefly.
84
85
Use both together: high Max Wait with low Wait Time points to a single slow client; high Wait Time with low Max Wait indicates widespread shallow queuing.
85
86
86
87
### Network throughput
87
88
88
89
| Metric | Description |
89
90
|--------|-------------|
90
-
| Bytes Received (MB) |Megabytes received from PostgreSQL servers per second. |
91
-
| Bytes Sent (MB) |Megabytes sent to PostgreSQL servers per second. |
91
+
| Bytes Received (MB) |Total number of bytes received. |
92
+
| Bytes Sent (MB) |Total number of bytes sent. |
92
93
93
94
### Memory and caching
94
95
95
96
| Metric | Description |
96
97
|--------|-------------|
97
-
| Prepared Statements | Number of prepared statements in the PgDog global cache. |
98
-
| Prepared Statements Memory (MB) |Memory consumed by the prepared statements cache. |
99
-
| Query Cache Size | Number of parsed queries stored in the query cache. |
0 commit comments