This commit is contained in:
parent
b6072d51c7
commit
2efb905f47
|
|
@ -24,8 +24,8 @@ data:
|
||||||
aserver-dashboard.json: |
|
aserver-dashboard.json: |
|
||||||
{
|
{
|
||||||
"id": null,
|
"id": null,
|
||||||
"uid": "aserver-qps",
|
"uid": "aserver-monitoring",
|
||||||
"title": "AServer Requests",
|
"title": "AServer 监控面板",
|
||||||
"timezone": "browser",
|
"timezone": "browser",
|
||||||
"schemaVersion": 38,
|
"schemaVersion": 38,
|
||||||
"version": 1,
|
"version": 1,
|
||||||
|
|
@ -35,8 +35,8 @@ data:
|
||||||
"panels": [
|
"panels": [
|
||||||
{
|
{
|
||||||
"type": "timeseries",
|
"type": "timeseries",
|
||||||
"title": "Requests per second by endpoint",
|
"title": "HTTP 请求速率 (QPS)",
|
||||||
"gridPos": { "x": 0, "y": 0, "w": 24, "h": 8 },
|
"gridPos": { "x": 0, "y": 0, "w": 12, "h": 8 },
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"expr": "sum by (endpoint) (rate(aserver_http_requests_total[1m]))",
|
"expr": "sum by (endpoint) (rate(aserver_http_requests_total[1m]))",
|
||||||
|
|
@ -44,6 +44,98 @@ data:
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "reqps"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "timeseries",
|
||||||
|
"title": "HTTP 请求总数",
|
||||||
|
"gridPos": { "x": 12, "y": 0, "w": 12, "h": 8 },
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "aserver_http_requests_total",
|
||||||
|
"legendFormat": "{{endpoint}}",
|
||||||
|
"refId": "A",
|
||||||
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "timeseries",
|
||||||
|
"title": "JVM 内存使用",
|
||||||
|
"gridPos": { "x": 0, "y": 8, "w": 12, "h": 8 },
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "jvm_memory_used_bytes{kubernetes_pod_name=~\"aserver.*\"}",
|
||||||
|
"legendFormat": "{{area}}",
|
||||||
|
"refId": "A",
|
||||||
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "bytes"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "timeseries",
|
||||||
|
"title": "JVM 线程数",
|
||||||
|
"gridPos": { "x": 12, "y": 8, "w": 12, "h": 8 },
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "jvm_threads_live_threads{kubernetes_pod_name=~\"aserver.*\"}",
|
||||||
|
"legendFormat": "Live Threads",
|
||||||
|
"refId": "A",
|
||||||
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"expr": "jvm_threads_peak_threads{kubernetes_pod_name=~\"aserver.*\"}",
|
||||||
|
"legendFormat": "Peak Threads",
|
||||||
|
"refId": "B",
|
||||||
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "timeseries",
|
||||||
|
"title": "系统 CPU 使用率",
|
||||||
|
"gridPos": { "x": 0, "y": 16, "w": 12, "h": 8 },
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "system_cpu_usage{kubernetes_pod_name=~\"aserver.*\"}",
|
||||||
|
"legendFormat": "CPU Usage",
|
||||||
|
"refId": "A",
|
||||||
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fieldConfig": {
|
||||||
|
"defaults": {
|
||||||
|
"unit": "percentunit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "timeseries",
|
||||||
|
"title": "Tomcat 会话统计",
|
||||||
|
"gridPos": { "x": 12, "y": 16, "w": 12, "h": 8 },
|
||||||
|
"targets": [
|
||||||
|
{
|
||||||
|
"expr": "tomcat_sessions_created_sessions_total{kubernetes_pod_name=~\"aserver.*\"}",
|
||||||
|
"legendFormat": "Created Sessions",
|
||||||
|
"refId": "A",
|
||||||
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"expr": "tomcat_sessions_rejected_sessions_total{kubernetes_pod_name=~\"aserver.*\"}",
|
||||||
|
"legendFormat": "Rejected Sessions",
|
||||||
|
"refId": "B",
|
||||||
|
"datasource": { "type": "prometheus", "uid": "Prometheus" }
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue