163 lines
4.4 KiB
JSON
163 lines
4.4 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": {
|
|
"type": "datasource",
|
|
"uid": "prometheus"
|
|
},
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"target": {
|
|
"limit": 100,
|
|
"matchAny": false,
|
|
"tags": [],
|
|
"type": "dashboard"
|
|
},
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable": true,
|
|
"graphTooltip": 1,
|
|
"fiscalYearStartMonth": 0,
|
|
"id": null,
|
|
"links": [],
|
|
"panels": [
|
|
|
|
|
|
{
|
|
"datasource": { "type": "datasource", "uid": "prometheus" },
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"custom": {
|
|
"axisPlacement": "auto",
|
|
"drawStyle": "line",
|
|
"fillBorderColor": "rgba(255, 255, 255, 1)",
|
|
"gradientMode": "none",
|
|
"lineStyle": "solid",
|
|
"lineWidth": 1,
|
|
"scaleDistribution": { "type": "linear" },
|
|
"showPoints": "auto",
|
|
"spanNulls": false,
|
|
"stacking": { "group": "A", "mode": "none" },
|
|
"thresholdsStyle": { "mode": "off" }
|
|
},
|
|
"unit": "ms"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 0 },
|
|
"id": 2,
|
|
"options": {
|
|
"legend": { "calcs": ["mean", "max"], "displayMode": "list", "placement": "bottom" },
|
|
"tooltip": { "mode": "single", "sort": "none" }
|
|
},
|
|
"targets": [
|
|
{ "expr": "frontend_load_time", "legendFormat": "Завантаження: {{instance}}", "refId": "A" }
|
|
],
|
|
"title": "Час завантаження Frontend (ms)",
|
|
"type": "timeseries"
|
|
},
|
|
|
|
{
|
|
"datasource": { "type": "datasource", "uid": "prometheus" },
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": { "mode": "palette-classic" },
|
|
"unit": "short"
|
|
}
|
|
},
|
|
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 0 },
|
|
"id": 4,
|
|
"options": {
|
|
"legend": {
|
|
"calcs": ["last"],
|
|
"displayMode": "list",
|
|
"placement": "bottom"
|
|
},
|
|
"tooltip": { "mode": "single", "sort": "none" }
|
|
},
|
|
"targets": [
|
|
{ "expr": "users_online", "legendFormat": "Онлайн користувачі", "refId": "A" }
|
|
],
|
|
"title": "Онлайн користувачі (Gauge)",
|
|
"type": "timeseries"
|
|
},
|
|
|
|
{
|
|
"datasource": { "type": "datasource", "uid": "prometheus" },
|
|
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 0 },
|
|
"id": 10,
|
|
"targets": [
|
|
{
|
|
"expr": "rest_request_duration_ms",
|
|
"legendFormat": "{{path}} ({{status}})",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "REST Запити (Duration)",
|
|
"type": "timeseries"
|
|
},
|
|
|
|
{
|
|
"datasource": { "type": "datasource", "uid": "prometheus" },
|
|
"gridPos": { "h": 8, "w": 8, "x": 0, "y": 8 },
|
|
"id": 6,
|
|
"targets": [
|
|
{
|
|
"expr": "rate(ws_in_bytes_total[5m])",
|
|
"legendFormat": "Вхідний WS-трафік (байт/сек)",
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"expr": "rate(ws_out_bytes_total[5m])",
|
|
"legendFormat": "Вихідний WS-трафік (байт/сек)",
|
|
"refId": "B"
|
|
}
|
|
],
|
|
"type": "timeseries",
|
|
"title": "WS трафік (Rate)"
|
|
},
|
|
|
|
{
|
|
"datasource": { "type": "datasource", "uid": "prometheus" },
|
|
"gridPos": { "h": 8, "w": 8, "x": 8, "y": 8 },
|
|
"id": 16,
|
|
"targets": [
|
|
{ "expr": "frontend_resource_count", "legendFormat": "Кількість ресурсів", "refId": "A" }
|
|
],
|
|
"title": "Кількість завантажених ресурсів",
|
|
"type": "timeseries"
|
|
},
|
|
|
|
{
|
|
"datasource": { "type": "datasource", "uid": "prometheus" },
|
|
"gridPos": { "h": 8, "w": 8, "x": 16, "y": 8 },
|
|
"id": 14,
|
|
"targets": [
|
|
{
|
|
"expr": "frontend_memory_used",
|
|
"legendFormat": "Використано JS Heap (MB)",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Використання JS Heap (MB)",
|
|
"type": "timeseries"
|
|
}
|
|
],
|
|
|
|
"refresh": "5s",
|
|
"schemaVersion": 38,
|
|
"style": "dark",
|
|
"tags": ["Sheep Service", "pushgateway"],
|
|
|
|
"time": { "from": "now-30m", "to": "now" },
|
|
"timezone": "browser",
|
|
"title": "Sheep Service Metrics",
|
|
"version": 1
|
|
} |