mirror of
https://github.com/immich-app/yucca.git
synced 2026-09-30 13:33:00 +08:00
1096 lines
25 KiB
JSON
1096 lines
25 KiB
JSON
{
|
|
"annotations": {
|
|
"list": []
|
|
},
|
|
"description": "Request log lines are SAMPLED (api_request_count is not) \u2014 counts here understate true request volume.",
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 1,
|
|
"links": [
|
|
{
|
|
"asDropdown": true,
|
|
"icon": "external link",
|
|
"includeVars": false,
|
|
"keepTime": true,
|
|
"tags": [
|
|
"yucca"
|
|
],
|
|
"targetBlank": false,
|
|
"title": "Yucca dashboards",
|
|
"type": "dashboards"
|
|
}
|
|
],
|
|
"panels": [
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 1,
|
|
"panels": [],
|
|
"title": "Overview",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"custom": {
|
|
"axisCenteredZero": false,
|
|
"axisPlacement": "auto",
|
|
"drawStyle": "bars",
|
|
"fillOpacity": 100,
|
|
"gradientMode": "none",
|
|
"lineInterpolation": "linear",
|
|
"lineWidth": 1,
|
|
"pointSize": 5,
|
|
"scaleDistribution": {
|
|
"type": "linear"
|
|
},
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"stacking": {
|
|
"group": "A",
|
|
"mode": "normal"
|
|
},
|
|
"thresholdsStyle": {
|
|
"mode": "off"
|
|
}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 16,
|
|
"x": 0,
|
|
"y": 1
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Total",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "multi",
|
|
"sort": "desc"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\"",
|
|
"queryType": "hits",
|
|
"fields": [
|
|
"level"
|
|
]
|
|
}
|
|
],
|
|
"title": "Log volume by level",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"noValue": "0",
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 16,
|
|
"y": 1
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" | stats count()",
|
|
"queryType": "statsRange"
|
|
}
|
|
],
|
|
"title": "Lines (range)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"noValue": "0",
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 1
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 20,
|
|
"y": 1
|
|
},
|
|
"id": 4,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" level:in(50,60) | stats count()",
|
|
"queryType": "statsRange"
|
|
}
|
|
],
|
|
"title": "Errors (range)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"custom": {
|
|
"axisCenteredZero": false,
|
|
"axisPlacement": "auto",
|
|
"drawStyle": "line",
|
|
"fillOpacity": 0,
|
|
"gradientMode": "none",
|
|
"lineInterpolation": "linear",
|
|
"lineWidth": 2,
|
|
"pointSize": 5,
|
|
"scaleDistribution": {
|
|
"type": "linear"
|
|
},
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"stacking": {
|
|
"group": "A",
|
|
"mode": "none"
|
|
},
|
|
"thresholdsStyle": {
|
|
"mode": "off"
|
|
}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 5
|
|
},
|
|
"id": 5,
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Total",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "multi",
|
|
"sort": "desc"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" | stats by (kubernetes.pod_name) count()",
|
|
"queryType": "statsRange",
|
|
"legendFormat": "{{kubernetes.pod_name}}"
|
|
}
|
|
],
|
|
"title": "Volume by pod",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"noValue": "0",
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
},
|
|
{
|
|
"color": "yellow",
|
|
"value": 1
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 16,
|
|
"y": 9
|
|
},
|
|
"id": 6,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" level:=40 | stats count()",
|
|
"queryType": "statsRange"
|
|
}
|
|
],
|
|
"title": "Warnings (range)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"noValue": "0",
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 4,
|
|
"x": 20,
|
|
"y": 9
|
|
},
|
|
"id": 7,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" | stats count_uniq(kubernetes.pod_name)",
|
|
"queryType": "statsRange"
|
|
}
|
|
],
|
|
"title": "Pods logging (range)",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 9
|
|
},
|
|
"id": 8,
|
|
"panels": [],
|
|
"title": "Errors",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"custom": {
|
|
"axisCenteredZero": false,
|
|
"axisPlacement": "auto",
|
|
"drawStyle": "bars",
|
|
"fillOpacity": 100,
|
|
"gradientMode": "none",
|
|
"lineInterpolation": "linear",
|
|
"lineWidth": 1,
|
|
"pointSize": 5,
|
|
"scaleDistribution": {
|
|
"type": "linear"
|
|
},
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"stacking": {
|
|
"group": "A",
|
|
"mode": "normal"
|
|
},
|
|
"thresholdsStyle": {
|
|
"mode": "off"
|
|
}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 10
|
|
},
|
|
"id": 9,
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Total",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "multi",
|
|
"sort": "desc"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" level:in(50,60) | stats by (kubernetes.pod_name) count()",
|
|
"queryType": "statsRange",
|
|
"legendFormat": "{{kubernetes.pod_name}}"
|
|
}
|
|
],
|
|
"title": "Errors by pod",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 8,
|
|
"y": 10
|
|
},
|
|
"id": 10,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": false,
|
|
"fields": "",
|
|
"reducer": [
|
|
"sum"
|
|
],
|
|
"show": false
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": true,
|
|
"displayName": "hits"
|
|
}
|
|
]
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" level:in(50,60) | top 15 by (_msg)",
|
|
"queryType": "instant"
|
|
}
|
|
],
|
|
"title": "Top error messages",
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 10
|
|
},
|
|
"id": 11,
|
|
"options": {
|
|
"dedupStrategy": "none",
|
|
"enableInfiniteScrolling": true,
|
|
"enableLogDetails": true,
|
|
"prettifyLogMessage": false,
|
|
"showCommonLabels": false,
|
|
"showControls": true,
|
|
"showLabels": false,
|
|
"showTime": true,
|
|
"sortOrder": "Descending",
|
|
"wrapLogMessage": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" level:in(50,60) $search",
|
|
"queryType": "instant",
|
|
"maxLines": 1000
|
|
}
|
|
],
|
|
"title": "Error stream",
|
|
"type": "logs"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 18
|
|
},
|
|
"id": 12,
|
|
"panels": [],
|
|
"title": "Requests (sampled)",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "palette-classic"
|
|
},
|
|
"custom": {
|
|
"axisCenteredZero": false,
|
|
"axisPlacement": "auto",
|
|
"drawStyle": "bars",
|
|
"fillOpacity": 100,
|
|
"gradientMode": "none",
|
|
"lineInterpolation": "linear",
|
|
"lineWidth": 1,
|
|
"pointSize": 5,
|
|
"scaleDistribution": {
|
|
"type": "linear"
|
|
},
|
|
"showPoints": "never",
|
|
"spanNulls": false,
|
|
"stacking": {
|
|
"group": "A",
|
|
"mode": "normal"
|
|
},
|
|
"thresholdsStyle": {
|
|
"mode": "off"
|
|
}
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 19
|
|
},
|
|
"id": 13,
|
|
"options": {
|
|
"legend": {
|
|
"calcs": [
|
|
"sum"
|
|
],
|
|
"displayMode": "table",
|
|
"placement": "bottom",
|
|
"showLegend": true,
|
|
"sortBy": "Total",
|
|
"sortDesc": true
|
|
},
|
|
"tooltip": {
|
|
"mode": "multi",
|
|
"sort": "desc"
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" status_code:* | stats by (status_code) count()",
|
|
"queryType": "statsRange",
|
|
"legendFormat": "{{status_code}}"
|
|
}
|
|
],
|
|
"title": "Requests by status",
|
|
"type": "timeseries"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 19
|
|
},
|
|
"id": 14,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": false,
|
|
"fields": "",
|
|
"reducer": [
|
|
"sum"
|
|
],
|
|
"show": false
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": [
|
|
{
|
|
"desc": true,
|
|
"displayName": "requests"
|
|
}
|
|
]
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" status_code:* | stats by (_msg) count() as requests, avg(duration_ms) as avg_ms | sort by (requests) desc | limit 20",
|
|
"queryType": "instant"
|
|
}
|
|
],
|
|
"title": "Top handlers",
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 27
|
|
},
|
|
"id": 15,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": false,
|
|
"fields": "",
|
|
"reducer": [
|
|
"sum"
|
|
],
|
|
"show": false
|
|
},
|
|
"showHeader": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" duration_ms:* | fields _time, method, path, status_code, duration_ms, outcome, request_id | sort by (duration_ms) desc | limit 25",
|
|
"queryType": "instant"
|
|
}
|
|
],
|
|
"title": "Slowest requests",
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "auto",
|
|
"cellOptions": {
|
|
"type": "auto"
|
|
},
|
|
"filterable": true
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green",
|
|
"value": 0
|
|
}
|
|
]
|
|
},
|
|
"unit": "short"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 27
|
|
},
|
|
"id": 16,
|
|
"options": {
|
|
"cellHeight": "sm",
|
|
"footer": {
|
|
"countRows": false,
|
|
"fields": "",
|
|
"reducer": [
|
|
"sum"
|
|
],
|
|
"show": false
|
|
},
|
|
"showHeader": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" status_code:>=500 | fields _time, method, path, status_code, duration_ms, request_id | sort by (_time) desc | limit 25",
|
|
"queryType": "instant"
|
|
}
|
|
],
|
|
"title": "5xx lines",
|
|
"type": "table"
|
|
},
|
|
{
|
|
"collapsed": false,
|
|
"gridPos": {
|
|
"h": 1,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 35
|
|
},
|
|
"id": 17,
|
|
"panels": [],
|
|
"title": "Stream",
|
|
"type": "row"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"gridPos": {
|
|
"h": 14,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 36
|
|
},
|
|
"id": 18,
|
|
"options": {
|
|
"dedupStrategy": "none",
|
|
"enableInfiniteScrolling": true,
|
|
"enableLogDetails": true,
|
|
"prettifyLogMessage": false,
|
|
"showCommonLabels": false,
|
|
"showControls": true,
|
|
"showLabels": false,
|
|
"showTime": true,
|
|
"sortOrder": "Descending",
|
|
"wrapLogMessage": true
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": {
|
|
"type": "victoriametrics-logs-datasource",
|
|
"uid": "$logs_datasource"
|
|
},
|
|
"refId": "A",
|
|
"expr": "{kubernetes.container_name=\"yucca-admin-api\"} cluster:=\"$cluster\" request_id:~\"$request_id\" $search",
|
|
"queryType": "instant",
|
|
"maxLines": 5000
|
|
}
|
|
],
|
|
"title": "Live stream",
|
|
"type": "logs"
|
|
}
|
|
],
|
|
"preload": false,
|
|
"refresh": "30s",
|
|
"schemaVersion": 39,
|
|
"tags": [
|
|
"yucca",
|
|
"logs"
|
|
],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"name": "logs_datasource",
|
|
"type": "datasource",
|
|
"query": "victoriametrics-logs-datasource",
|
|
"label": "Logs datasource",
|
|
"current": {},
|
|
"options": [],
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"hide": 0
|
|
},
|
|
{
|
|
"name": "cluster",
|
|
"type": "custom",
|
|
"label": "Cluster",
|
|
"query": "father,luke",
|
|
"current": {
|
|
"selected": true,
|
|
"text": "father",
|
|
"value": "father"
|
|
},
|
|
"options": [
|
|
{
|
|
"selected": true,
|
|
"text": "father",
|
|
"value": "father"
|
|
},
|
|
{
|
|
"selected": false,
|
|
"text": "luke",
|
|
"value": "luke"
|
|
}
|
|
],
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"hide": 0
|
|
},
|
|
{
|
|
"name": "search",
|
|
"type": "textbox",
|
|
"label": "Filter (LogsQL)",
|
|
"query": "",
|
|
"current": {
|
|
"selected": false,
|
|
"text": "",
|
|
"value": ""
|
|
},
|
|
"options": [],
|
|
"hide": 0
|
|
},
|
|
{
|
|
"name": "request_id",
|
|
"type": "textbox",
|
|
"label": "Request ID",
|
|
"query": "",
|
|
"current": {
|
|
"selected": false,
|
|
"text": "",
|
|
"value": ""
|
|
},
|
|
"options": [],
|
|
"hide": 0
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "",
|
|
"title": "Logs / yucca-admin-api",
|
|
"uid": "yucca-logs-admin-api",
|
|
"version": 1
|
|
} |