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: PROMETHEUS.md
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,17 @@ The endpoint is publicly accessible (no authentication required) and returns met
74
74
|`dblab_datasets_total`| Gauge |`pool`| Total number of datasets (slots) in the pool |
75
75
|`dblab_datasets_available`| Gauge |`pool`| Number of available (non-busy) dataset slots for reuse |
76
76
77
+
### Sync Instance Metrics (Physical Mode)
78
+
79
+
These metrics are only available when DBLab is running in physical mode with a sync instance enabled. They track the WAL replay status of the sync instance.
80
+
81
+
| Metric Name | Type | Labels | Description |
82
+
|-------------|------|--------|-------------|
83
+
|`dblab_sync_status`| Gauge |`status`| Status of the sync instance (1=active for status code) |
84
+
|`dblab_sync_wal_lag_seconds`| Gauge | - | WAL replay lag in seconds for the sync instance |
85
+
|`dblab_sync_uptime_seconds`| Gauge | - | Uptime of the sync instance in seconds |
86
+
|`dblab_sync_last_replayed_timestamp`| Gauge | - | Unix timestamp of the last replayed transaction |
87
+
77
88
### Observability Metrics
78
89
79
90
These metrics help monitor the health of the metrics collection system itself.
expr: dblab_sync_status{status="down"} == 1 or dblab_sync_status{status="error"} == 1
244
+
for: 5m
245
+
labels:
246
+
severity: critical
247
+
annotations:
248
+
summary: "DBLab sync instance is down"
249
+
description: "DBLab sync instance is not healthy"
250
+
```
251
+
203
252
## OpenTelemetry Integration
204
253
205
254
DBLab metrics can be exported to OpenTelemetry-compatible backends using the OpenTelemetry Collector. This allows you to send metrics to Grafana Cloud, Datadog, New Relic, and other observability platforms.
0 commit comments