This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"title": "Tornado+EleVue 应用监控",
|
||||
"uid": "tornado-elevue",
|
||||
"version": 1,
|
||||
"timezone": "browser",
|
||||
"refresh": "30s",
|
||||
"schemaVersion": 39,
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"title": "HTTP 请求数",
|
||||
"type": "timeseries",
|
||||
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "sum(rate(http_requests_total{job=\"tornado_elevue\"}[5m]))",
|
||||
"legendFormat": "请求/秒"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"title": "请求响应时间",
|
||||
"type": "timeseries",
|
||||
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
|
||||
"targets": [
|
||||
{
|
||||
"expr": "histogram_quantile(0.95, sum(rate(http_request_duration_seconds_bucket{job=\"tornado_elevue\"}[5m])) by (le))",
|
||||
"legendFormat": "P95"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user