101 lines
2.5 KiB
JSON
101 lines
2.5 KiB
JSON
|
|
{
|
||
|
|
"dashboard": {
|
||
|
|
"title": "Bakery IA - Application Performance",
|
||
|
|
"description": "Application performance monitoring dashboard for Bakery IA microservices",
|
||
|
|
"tags": ["application", "performance", "apm"],
|
||
|
|
"panels": [
|
||
|
|
{
|
||
|
|
"title": "Request Rate",
|
||
|
|
"type": "timeseries",
|
||
|
|
"query": {
|
||
|
|
"metric": "http_server_requests_seconds_count",
|
||
|
|
"aggregate": "sum",
|
||
|
|
"groupBy": ["service"],
|
||
|
|
"filters": [
|
||
|
|
{
|
||
|
|
"key": "service",
|
||
|
|
"operator": "=",
|
||
|
|
"value": "${service}"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "req/s"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"title": "Error Rate",
|
||
|
|
"type": "timeseries",
|
||
|
|
"query": {
|
||
|
|
"metric": "http_server_requests_seconds_count",
|
||
|
|
"aggregate": "sum",
|
||
|
|
"groupBy": ["service", "status"],
|
||
|
|
"filters": [
|
||
|
|
{
|
||
|
|
"key": "service",
|
||
|
|
"operator": "=",
|
||
|
|
"value": "${service}"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"key": "status",
|
||
|
|
"operator": "=~",
|
||
|
|
"value": "5.."
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "req/s"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"title": "Average Response Time",
|
||
|
|
"type": "timeseries",
|
||
|
|
"query": {
|
||
|
|
"metric": "http_server_requests_seconds_sum",
|
||
|
|
"aggregate": "avg",
|
||
|
|
"groupBy": ["service"],
|
||
|
|
"filters": [
|
||
|
|
{
|
||
|
|
"key": "service",
|
||
|
|
"operator": "=",
|
||
|
|
"value": "${service}"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "seconds"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"title": "Throughput",
|
||
|
|
"type": "timeseries",
|
||
|
|
"query": {
|
||
|
|
"metric": "http_server_requests_seconds_count",
|
||
|
|
"aggregate": "rate",
|
||
|
|
"groupBy": ["service"],
|
||
|
|
"filters": [
|
||
|
|
{
|
||
|
|
"key": "service",
|
||
|
|
"operator": "=",
|
||
|
|
"value": "${service}"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"unit": "req/s"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"variables": [
|
||
|
|
{
|
||
|
|
"name": "service",
|
||
|
|
"label": "Service",
|
||
|
|
"type": "dropdown",
|
||
|
|
"default": "*",
|
||
|
|
"values": ["*", "auth-service", "gateway-service", "forecasting-service", "inventory-service", "production-service", "procurement-service"]
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"layout": {
|
||
|
|
"type": "grid",
|
||
|
|
"columns": 12,
|
||
|
|
"gap": [16, 16]
|
||
|
|
},
|
||
|
|
"refresh": "15s",
|
||
|
|
"time": {
|
||
|
|
"from": "now-30m",
|
||
|
|
"to": "now"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|