Initialize observability stack with local monitoring and server134 deployment

This commit is contained in:
qiubaishen
2026-10-15 18:35:05 +08:00
commit f657abeed1
36 changed files with 4644 additions and 0 deletions
@@ -0,0 +1,239 @@
{
"uid": "new-api-local",
"title": "New API - Local Health",
"schemaVersion": 39,
"version": 1,
"refresh": "15s",
"tags": ["new-api", "local"],
"time": {
"from": "now-30m",
"to": "now"
},
"panels": [
{
"id": 1,
"title": "Scope",
"type": "text",
"gridPos": {
"x": 0,
"y": 0,
"w": 24,
"h": 3
},
"options": {
"mode": "markdown",
"content": "Target: `http://host.docker.internal:3000/api/status` (Windows app at `127.0.0.1:3000`). Checks HTTP 200 and `success: true` every 15 seconds. **Status endpoint availability and latency only.** Model-call success rate, billing, application logs and business traces are not connected yet. No-traffic periods cannot be inferred from this probe."
}
},
{
"id": 2,
"title": "Status probe (1 = OK, 0 = failed)",
"type": "stat",
"datasource": {
"type": "prometheus",
"uid": "victoriametrics"
},
"gridPos": {
"x": 0,
"y": 3,
"w": 8,
"h": 7
},
"targets": [
{
"refId": "A",
"expr": "probe_success{job=\"new-api-health\"}",
"legendFormat": "{{service}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
}
}
},
{
"id": 3,
"title": "HTTP status",
"type": "stat",
"datasource": {
"type": "prometheus",
"uid": "victoriametrics"
},
"gridPos": {
"x": 8,
"y": 3,
"w": 8,
"h": 7
},
"targets": [
{
"refId": "A",
"expr": "probe_http_status_code{job=\"new-api-health\"}",
"legendFormat": "{{service}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
}
}
},
{
"id": 4,
"title": "Status endpoint duration",
"type": "stat",
"datasource": {
"type": "prometheus",
"uid": "victoriametrics"
},
"gridPos": {
"x": 16,
"y": 3,
"w": 8,
"h": 7
},
"targets": [
{
"refId": "A",
"expr": "probe_duration_seconds{job=\"new-api-health\"}",
"legendFormat": "{{service}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
}
}
},
{
"id": 5,
"title": "Status endpoint availability",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "victoriametrics"
},
"gridPos": {
"x": 0,
"y": 10,
"w": 12,
"h": 7
},
"targets": [
{
"refId": "A",
"expr": "probe_success{job=\"new-api-health\"}",
"legendFormat": "{{service}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
}
}
},
{
"id": 6,
"title": "Status endpoint duration (not inference latency)",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "victoriametrics"
},
"gridPos": {
"x": 12,
"y": 10,
"w": 12,
"h": 7
},
"targets": [
{
"refId": "A",
"expr": "probe_duration_seconds{job=\"new-api-health\"}",
"legendFormat": "{{service}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "s"
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
}
}
},
{
"id": 7,
"title": "Monitoring scrapes",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "victoriametrics"
},
"gridPos": {
"x": 0,
"y": 17,
"w": 24,
"h": 7
},
"targets": [
{
"refId": "A",
"expr": "up",
"legendFormat": "{{job}} {{instance}}"
}
],
"fieldConfig": {
"defaults": {
"unit": "short"
},
"overrides": []
},
"options": {
"reduceOptions": {
"calcs": ["lastNotNull"],
"fields": "",
"values": false
}
}
}
]
}