348 lines
9.5 KiB
JSON
348 lines
9.5 KiB
JSON
{
|
|
"description": "Comprehensive error tracking and analysis dashboard",
|
|
"tags": ["errors", "exceptions", "tracking"],
|
|
"name": "bakery-ia-error-tracking",
|
|
"title": "Bakery IA - Error Tracking",
|
|
"uploadedGrafana": false,
|
|
"uuid": "bakery-ia-errors-01",
|
|
"version": "v4",
|
|
"collapsableRowsMigrated": true,
|
|
"layout": [
|
|
{
|
|
"x": 0,
|
|
"y": 0,
|
|
"w": 6,
|
|
"h": 3,
|
|
"i": "total-errors",
|
|
"moved": false,
|
|
"static": false
|
|
},
|
|
{
|
|
"x": 6,
|
|
"y": 0,
|
|
"w": 6,
|
|
"h": 3,
|
|
"i": "error-rate",
|
|
"moved": false,
|
|
"static": false
|
|
},
|
|
{
|
|
"x": 0,
|
|
"y": 3,
|
|
"w": 6,
|
|
"h": 3,
|
|
"i": "http-5xx",
|
|
"moved": false,
|
|
"static": false
|
|
},
|
|
{
|
|
"x": 6,
|
|
"y": 3,
|
|
"w": 6,
|
|
"h": 3,
|
|
"i": "http-4xx",
|
|
"moved": false,
|
|
"static": false
|
|
}
|
|
],
|
|
"variables": {
|
|
"service": {
|
|
"id": "service-var",
|
|
"name": "service",
|
|
"description": "Filter by service name",
|
|
"type": "QUERY",
|
|
"queryValue": "SELECT DISTINCT(resource_attrs['service.name']) as value FROM signoz_metrics.distributed_time_series_v4_1day WHERE metric_name = 'error_total' AND value != '' ORDER BY value",
|
|
"customValue": "",
|
|
"textboxValue": "",
|
|
"showALLOption": true,
|
|
"multiSelect": false,
|
|
"order": 1,
|
|
"modificationUUID": "",
|
|
"sort": "ASC",
|
|
"selectedValue": null
|
|
}
|
|
},
|
|
"widgets": [
|
|
{
|
|
"id": "total-errors",
|
|
"title": "Total Errors",
|
|
"description": "Total number of errors across all services",
|
|
"isStacked": false,
|
|
"nullZeroValues": "zero",
|
|
"opacity": "1",
|
|
"panelTypes": "value",
|
|
"query": {
|
|
"builder": {
|
|
"queryData": [
|
|
{
|
|
"dataSource": "metrics",
|
|
"queryName": "A",
|
|
"aggregateOperator": "sum",
|
|
"aggregateAttribute": {
|
|
"key": "error_total",
|
|
"dataType": "int64",
|
|
"type": "Counter",
|
|
"isColumn": false
|
|
},
|
|
"timeAggregation": "sum",
|
|
"spaceAggregation": "sum",
|
|
"functions": [],
|
|
"filters": {
|
|
"items": [
|
|
{
|
|
"key": {
|
|
"key": "service.name",
|
|
"dataType": "string",
|
|
"type": "resource",
|
|
"isColumn": false
|
|
},
|
|
"op": "=",
|
|
"value": "{{.service}}"
|
|
}
|
|
],
|
|
"op": "AND"
|
|
},
|
|
"expression": "A",
|
|
"disabled": false,
|
|
"having": [],
|
|
"stepInterval": 60,
|
|
"limit": null,
|
|
"orderBy": [],
|
|
"groupBy": [],
|
|
"legend": "Total Errors",
|
|
"reduceTo": "sum"
|
|
}
|
|
],
|
|
"queryFormulas": []
|
|
},
|
|
"queryType": "builder"
|
|
},
|
|
"fillSpans": false,
|
|
"yAxisUnit": "none"
|
|
},
|
|
{
|
|
"id": "error-rate",
|
|
"title": "Error Rate",
|
|
"description": "Error rate over time",
|
|
"isStacked": false,
|
|
"nullZeroValues": "zero",
|
|
"opacity": "1",
|
|
"panelTypes": "graph",
|
|
"query": {
|
|
"builder": {
|
|
"queryData": [
|
|
{
|
|
"dataSource": "metrics",
|
|
"queryName": "A",
|
|
"aggregateOperator": "sum",
|
|
"aggregateAttribute": {
|
|
"key": "error_total",
|
|
"dataType": "int64",
|
|
"type": "Counter",
|
|
"isColumn": false
|
|
},
|
|
"timeAggregation": "rate",
|
|
"spaceAggregation": "sum",
|
|
"functions": [],
|
|
"filters": {
|
|
"items": [
|
|
{
|
|
"key": {
|
|
"key": "service.name",
|
|
"dataType": "string",
|
|
"type": "resource",
|
|
"isColumn": false
|
|
},
|
|
"op": "=",
|
|
"value": "{{.service}}"
|
|
}
|
|
],
|
|
"op": "AND"
|
|
},
|
|
"expression": "A",
|
|
"disabled": false,
|
|
"having": [],
|
|
"stepInterval": 60,
|
|
"limit": null,
|
|
"orderBy": [],
|
|
"groupBy": [
|
|
{
|
|
"key": "serviceName",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": true
|
|
}
|
|
],
|
|
"legend": "{{serviceName}}",
|
|
"reduceTo": "sum"
|
|
}
|
|
],
|
|
"queryFormulas": []
|
|
},
|
|
"queryType": "builder"
|
|
},
|
|
"fillSpans": false,
|
|
"yAxisUnit": "errors/s"
|
|
},
|
|
{
|
|
"id": "http-5xx",
|
|
"title": "HTTP 5xx Errors",
|
|
"description": "Server errors (5xx status codes)",
|
|
"isStacked": false,
|
|
"nullZeroValues": "zero",
|
|
"opacity": "1",
|
|
"panelTypes": "graph",
|
|
"query": {
|
|
"builder": {
|
|
"queryData": [
|
|
{
|
|
"dataSource": "metrics",
|
|
"queryName": "A",
|
|
"aggregateOperator": "sum",
|
|
"aggregateAttribute": {
|
|
"key": "http_server_requests_seconds_count",
|
|
"dataType": "int64",
|
|
"type": "Counter",
|
|
"isColumn": false
|
|
},
|
|
"timeAggregation": "sum",
|
|
"spaceAggregation": "sum",
|
|
"functions": [],
|
|
"filters": {
|
|
"items": [
|
|
{
|
|
"key": {
|
|
"key": "service.name",
|
|
"dataType": "string",
|
|
"type": "resource",
|
|
"isColumn": false
|
|
},
|
|
"op": "=",
|
|
"value": "{{.service}}"
|
|
},
|
|
{
|
|
"key": {
|
|
"key": "status_code",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": false
|
|
},
|
|
"op": "=~",
|
|
"value": "5.."
|
|
}
|
|
],
|
|
"op": "AND"
|
|
},
|
|
"expression": "A",
|
|
"disabled": false,
|
|
"having": [],
|
|
"stepInterval": 60,
|
|
"limit": null,
|
|
"orderBy": [],
|
|
"groupBy": [
|
|
{
|
|
"key": "serviceName",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": true
|
|
},
|
|
{
|
|
"key": "status_code",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": false
|
|
}
|
|
],
|
|
"legend": "{{serviceName}} - {{status_code}}",
|
|
"reduceTo": "sum"
|
|
}
|
|
],
|
|
"queryFormulas": []
|
|
},
|
|
"queryType": "builder"
|
|
},
|
|
"fillSpans": false,
|
|
"yAxisUnit": "number"
|
|
},
|
|
{
|
|
"id": "http-4xx",
|
|
"title": "HTTP 4xx Errors",
|
|
"description": "Client errors (4xx status codes)",
|
|
"isStacked": false,
|
|
"nullZeroValues": "zero",
|
|
"opacity": "1",
|
|
"panelTypes": "graph",
|
|
"query": {
|
|
"builder": {
|
|
"queryData": [
|
|
{
|
|
"dataSource": "metrics",
|
|
"queryName": "A",
|
|
"aggregateOperator": "sum",
|
|
"aggregateAttribute": {
|
|
"key": "http_server_requests_seconds_count",
|
|
"dataType": "int64",
|
|
"type": "Counter",
|
|
"isColumn": false
|
|
},
|
|
"timeAggregation": "sum",
|
|
"spaceAggregation": "sum",
|
|
"functions": [],
|
|
"filters": {
|
|
"items": [
|
|
{
|
|
"key": {
|
|
"key": "service.name",
|
|
"dataType": "string",
|
|
"type": "resource",
|
|
"isColumn": false
|
|
},
|
|
"op": "=",
|
|
"value": "{{.service}}"
|
|
},
|
|
{
|
|
"key": {
|
|
"key": "status_code",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": false
|
|
},
|
|
"op": "=~",
|
|
"value": "4.."
|
|
}
|
|
],
|
|
"op": "AND"
|
|
},
|
|
"expression": "A",
|
|
"disabled": false,
|
|
"having": [],
|
|
"stepInterval": 60,
|
|
"limit": null,
|
|
"orderBy": [],
|
|
"groupBy": [
|
|
{
|
|
"key": "serviceName",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": true
|
|
},
|
|
{
|
|
"key": "status_code",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": false
|
|
}
|
|
],
|
|
"legend": "{{serviceName}} - {{status_code}}",
|
|
"reduceTo": "sum"
|
|
}
|
|
],
|
|
"queryFormulas": []
|
|
},
|
|
"queryType": "builder"
|
|
},
|
|
"fillSpans": false,
|
|
"yAxisUnit": "number"
|
|
}
|
|
]
|
|
} |