161 lines
3.3 KiB
JSON
161 lines
3.3 KiB
JSON
{
|
|
"annotations": {
|
|
"list": []
|
|
},
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 0,
|
|
"id": null,
|
|
"links": [],
|
|
"liveNow": true,
|
|
"panels": [
|
|
{
|
|
"id": 1,
|
|
"title": "Request Rate (RPS)",
|
|
"type": "timeseries",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "sum(rate({container=\"apisix-gateway\"}[$__interval]))",
|
|
"legendFormat": "Requests / Sec",
|
|
"datasource": {
|
|
"type": "loki",
|
|
"uid": "Loki"
|
|
}
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "reqps"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"title": "Average Response Time (Latency)",
|
|
"type": "timeseries",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 0
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "avg(avg_over_time({container=\"apisix-gateway\"} | json | unwrap request_time [$__interval]))",
|
|
"legendFormat": "Avg Latency",
|
|
"datasource": {
|
|
"type": "loki",
|
|
"uid": "Loki"
|
|
}
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "s",
|
|
"custom": {
|
|
"drawStyle": "line",
|
|
"lineInterpolation": "smooth"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"title": "HTTP Status Distribution",
|
|
"type": "bargauge",
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 8
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "sum by(status) (count_over_time({container=\"apisix-gateway\"} | json [$__interval]))",
|
|
"legendFormat": "HTTP {{status}}",
|
|
"datasource": {
|
|
"type": "loki",
|
|
"uid": "Loki"
|
|
}
|
|
}
|
|
],
|
|
"options": {
|
|
"orientation": "horizontal",
|
|
"displayMode": "basic"
|
|
}
|
|
},
|
|
{
|
|
"id": 4,
|
|
"title": "Data Egress (Throughput)",
|
|
"type": "timeseries",
|
|
"gridPos": {
|
|
"h": 6,
|
|
"w": 16,
|
|
"x": 8,
|
|
"y": 8
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "sum(rate({container=\"apisix-gateway\"} | json | unwrap body_bytes_sent [$__interval]))",
|
|
"legendFormat": "Bytes / Sec",
|
|
"datasource": {
|
|
"type": "loki",
|
|
"uid": "Loki"
|
|
}
|
|
}
|
|
],
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"unit": "Bps"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 5,
|
|
"title": "APISIX Gateway Logs",
|
|
"type": "logs",
|
|
"gridPos": {
|
|
"h": 10,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 14
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "{container=\"apisix-gateway\"}",
|
|
"datasource": {
|
|
"type": "loki",
|
|
"uid": "Loki"
|
|
}
|
|
}
|
|
],
|
|
"options": {
|
|
"showLabels": false,
|
|
"wrapLogMessage": true,
|
|
"enableLogDetails": true
|
|
}
|
|
}
|
|
],
|
|
"schemaVersion": 39,
|
|
"style": "dark",
|
|
"tags": ["apisix"],
|
|
"templating": {
|
|
"list": []
|
|
},
|
|
"time": {
|
|
"from": "now-1h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "browser",
|
|
"title": "APISIX Gateway Performance",
|
|
"uid": "apisix-loki-perf",
|
|
"version": 1
|
|
}
|