{ "annotations": { "list": [] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, "links": [], "panels": [ { "title": "Request Rate", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, "fieldConfig": { "defaults": { "unit": "reqps", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "rate(mentatd_requests_total[5m])", "legendFormat": "Requests/s" } ] }, { "title": "Error Rate", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, "fieldConfig": { "defaults": { "unit": "percentunit", "custom": { "lineWidth": 2 }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 0.01 }, { "color": "red", "value": 0.05 } ] } } }, "targets": [ { "expr": "rate(mentatd_errors_total[5m]) / rate(mentatd_requests_total[5m])", "legendFormat": "Error Rate" } ] }, { "title": "Query Latency Percentiles", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, "fieldConfig": { "defaults": { "unit": "s", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "histogram_quantile(0.5, rate(mentatd_query_duration_seconds_bucket[5m]))", "legendFormat": "p50" }, { "expr": "histogram_quantile(0.95, rate(mentatd_query_duration_seconds_bucket[5m]))", "legendFormat": "p95" }, { "expr": "histogram_quantile(0.99, rate(mentatd_query_duration_seconds_bucket[5m]))", "legendFormat": "p99" } ] }, { "title": "Transaction Latency Percentiles", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, "fieldConfig": { "defaults": { "unit": "s", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "histogram_quantile(0.5, rate(mentatd_transaction_duration_seconds_bucket[5m]))", "legendFormat": "p50" }, { "expr": "histogram_quantile(0.95, rate(mentatd_transaction_duration_seconds_bucket[5m]))", "legendFormat": "p95" }, { "expr": "histogram_quantile(0.99, rate(mentatd_transaction_duration_seconds_bucket[5m]))", "legendFormat": "p99" } ] }, { "title": "Cache Hit Ratio", "type": "gauge", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 6, "x": 0, "y": 16 }, "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "yellow", "value": 0.3 }, { "color": "light-green", "value": 0.5 }, { "color": "green", "value": 0.8 } ] } } }, "targets": [ { "expr": "rate(mentatd_cache_hits_total[5m]) / (rate(mentatd_cache_hits_total[5m]) + rate(mentatd_cache_misses_total[5m]))", "legendFormat": "Hit Ratio" } ] }, { "title": "Cache Size", "type": "stat", "datasource": "Prometheus", "gridPos": { "h": 4, "w": 6, "x": 6, "y": 16 }, "targets": [ { "expr": "mentatd_cache_entries", "legendFormat": "Entries" } ] }, { "title": "Cache Invalidations", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 4, "w": 6, "x": 6, "y": 20 }, "fieldConfig": { "defaults": { "unit": "ops", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "rate(mentatd_cache_targeted_invalidations_total[5m])", "legendFormat": "Targeted" }, { "expr": "rate(mentatd_cache_full_invalidations_total[5m])", "legendFormat": "Full" } ] }, { "title": "Connection Pool", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 6, "x": 12, "y": 16 }, "fieldConfig": { "defaults": { "unit": "short", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "mentatd_connection_pool_size", "legendFormat": "Total" }, { "expr": "mentatd_connection_pool_available", "legendFormat": "Available" }, { "expr": "mentatd_connection_pool_waiting", "legendFormat": "Waiting" } ] }, { "title": "Transaction Rate", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 6, "x": 18, "y": 16 }, "fieldConfig": { "defaults": { "unit": "ops", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "rate(mentatd_transactions_total[5m])", "legendFormat": "TX/s" } ] }, { "title": "Operations by Type", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 24 }, "fieldConfig": { "defaults": { "unit": "ops", "custom": { "lineWidth": 2, "fillOpacity": 10 } } }, "targets": [ { "expr": "rate(mentatd_operations_total[5m])", "legendFormat": "{{ operation }}" } ] }, { "title": "Operation Latency by Type (p99)", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 24 }, "fieldConfig": { "defaults": { "unit": "s", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "histogram_quantile(0.99, rate(mentatd_operation_duration_seconds_bucket[5m]))", "legendFormat": "{{ operation }} p99" } ] }, { "title": "Streaming Queries", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 0, "y": 32 }, "fieldConfig": { "defaults": { "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "rate(mentatd_stream_queries_total[5m])", "legendFormat": "Stream Queries/s" }, { "expr": "rate(mentatd_stream_rows_sent_total[5m])", "legendFormat": "Stream Rows/s" } ] }, { "title": "Streaming Duration", "type": "timeseries", "datasource": "Prometheus", "gridPos": { "h": 8, "w": 12, "x": 12, "y": 32 }, "fieldConfig": { "defaults": { "unit": "s", "custom": { "lineWidth": 2 } } }, "targets": [ { "expr": "histogram_quantile(0.5, rate(mentatd_stream_duration_seconds_bucket[5m]))", "legendFormat": "p50" }, { "expr": "histogram_quantile(0.99, rate(mentatd_stream_duration_seconds_bucket[5m]))", "legendFormat": "p99" } ] } ], "schemaVersion": 39, "tags": ["mentatd", "pg_mentat"], "templating": { "list": [] }, "time": { "from": "now-1h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "mentatd Overview", "uid": "mentatd-overview", "version": 1 }