103 lines
4.5 KiB
JSON
103 lines
4.5 KiB
JSON
|
|
{
|
||
|
|
"annotations": { "list": [] },
|
||
|
|
"editable": true,
|
||
|
|
"fiscalYearStartMonth": 0,
|
||
|
|
"graphTooltip": 1,
|
||
|
|
"id": null,
|
||
|
|
"links": [],
|
||
|
|
"liveNow": false,
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": { "unit": "percentunit", "min": 0, "max": 1, "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [{ "color": "red", "value": null }, { "color": "yellow", "value": 0.9 }, { "color": "green", "value": 0.99 }] } },
|
||
|
|
"overrides": []
|
||
|
|
},
|
||
|
|
"gridPos": { "h": 6, "w": 8, "x": 0, "y": 0 },
|
||
|
|
"id": 1,
|
||
|
|
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto" },
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "sum(rate(veza_cache_hits_total{subsystem=\"rate_limiter\"}[5m])) / (sum(rate(veza_cache_hits_total{subsystem=\"rate_limiter\"}[5m])) + sum(rate(veza_cache_misses_total{subsystem=\"rate_limiter\"}[5m])))",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Rate limiter — cache hit rate (5m)",
|
||
|
|
"type": "stat"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": { "unit": "percentunit", "min": 0, "max": 1, "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [{ "color": "red", "value": null }, { "color": "yellow", "value": 0.9 }, { "color": "green", "value": 0.99 }] } },
|
||
|
|
"overrides": []
|
||
|
|
},
|
||
|
|
"gridPos": { "h": 6, "w": 8, "x": 8, "y": 0 },
|
||
|
|
"id": 2,
|
||
|
|
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto" },
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "sum(rate(veza_cache_hits_total{subsystem=\"chat_pubsub\"}[5m])) / (sum(rate(veza_cache_hits_total{subsystem=\"chat_pubsub\"}[5m])) + sum(rate(veza_cache_misses_total{subsystem=\"chat_pubsub\"}[5m])))",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Chat PubSub — hit rate (5m)",
|
||
|
|
"type": "stat"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||
|
|
"fieldConfig": {
|
||
|
|
"defaults": { "unit": "percentunit", "min": 0, "max": 1, "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [{ "color": "red", "value": null }, { "color": "yellow", "value": 0.9 }, { "color": "green", "value": 0.99 }] } },
|
||
|
|
"overrides": []
|
||
|
|
},
|
||
|
|
"gridPos": { "h": 6, "w": 8, "x": 16, "y": 0 },
|
||
|
|
"id": 3,
|
||
|
|
"options": { "reduceOptions": { "calcs": ["lastNotNull"] }, "orientation": "auto" },
|
||
|
|
"targets": [
|
||
|
|
{
|
||
|
|
"expr": "sum(rate(veza_cache_hits_total{subsystem=\"presence\"}[5m])) / (sum(rate(veza_cache_hits_total{subsystem=\"presence\"}[5m])) + sum(rate(veza_cache_misses_total{subsystem=\"presence\"}[5m])))",
|
||
|
|
"refId": "A"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"title": "Presence — hit rate (5m)",
|
||
|
|
"type": "stat"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||
|
|
"fieldConfig": { "defaults": { "unit": "ops", "color": { "mode": "palette-classic" } }, "overrides": [] },
|
||
|
|
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 6 },
|
||
|
|
"id": 4,
|
||
|
|
"options": { "legend": { "displayMode": "list", "placement": "bottom" } },
|
||
|
|
"targets": [
|
||
|
|
{ "expr": "sum by (subsystem) (rate(veza_cache_hits_total[5m]))", "legendFormat": "{{subsystem}} hits", "refId": "A" },
|
||
|
|
{ "expr": "sum by (subsystem) (rate(veza_cache_misses_total[5m]))", "legendFormat": "{{subsystem}} misses", "refId": "B" }
|
||
|
|
],
|
||
|
|
"title": "Hits + misses per subsystem (ops/s)",
|
||
|
|
"type": "timeseries"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
||
|
|
"fieldConfig": { "defaults": { "unit": "short", "color": { "mode": "palette-classic" } }, "overrides": [] },
|
||
|
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 },
|
||
|
|
"id": 5,
|
||
|
|
"options": { "legend": { "displayMode": "list", "placement": "bottom" } },
|
||
|
|
"targets": [
|
||
|
|
{ "expr": "redis_connected_clients", "legendFormat": "{{instance}} clients", "refId": "A" },
|
||
|
|
{ "expr": "redis_connected_slaves", "legendFormat": "{{instance}} replicas", "refId": "B" }
|
||
|
|
],
|
||
|
|
"title": "Redis connectivity (requires redis_exporter)",
|
||
|
|
"type": "timeseries"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"refresh": "30s",
|
||
|
|
"schemaVersion": 38,
|
||
|
|
"style": "dark",
|
||
|
|
"tags": ["veza", "redis", "cache"],
|
||
|
|
"templating": { "list": [] },
|
||
|
|
"time": { "from": "now-1h", "to": "now" },
|
||
|
|
"timepicker": {},
|
||
|
|
"timezone": "browser",
|
||
|
|
"title": "Veza Redis + Cache Hit Rate",
|
||
|
|
"uid": "veza-redis-cache",
|
||
|
|
"version": 1
|
||
|
|
}
|