170 lines
4.6 KiB
JSON
170 lines
4.6 KiB
JSON
{
|
|
"description": "Alert monitoring and management dashboard",
|
|
"tags": ["alerts", "monitoring", "management"],
|
|
"name": "bakery-ia-alert-management",
|
|
"title": "Bakery IA - Alert Management",
|
|
"uploadedGrafana": false,
|
|
"uuid": "bakery-ia-alerts-01",
|
|
"version": "v4",
|
|
"collapsableRowsMigrated": true,
|
|
"layout": [
|
|
{
|
|
"x": 0,
|
|
"y": 0,
|
|
"w": 6,
|
|
"h": 3,
|
|
"i": "active-alerts",
|
|
"moved": false,
|
|
"static": false
|
|
},
|
|
{
|
|
"x": 6,
|
|
"y": 0,
|
|
"w": 6,
|
|
"h": 3,
|
|
"i": "alert-rate",
|
|
"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 = 'alerts_active' AND value != '' ORDER BY value",
|
|
"customValue": "",
|
|
"textboxValue": "",
|
|
"showALLOption": true,
|
|
"multiSelect": false,
|
|
"order": 1,
|
|
"modificationUUID": "",
|
|
"sort": "ASC",
|
|
"selectedValue": null
|
|
}
|
|
},
|
|
"widgets": [
|
|
{
|
|
"id": "active-alerts",
|
|
"title": "Active Alerts",
|
|
"description": "Number of currently active alerts",
|
|
"isStacked": false,
|
|
"nullZeroValues": "zero",
|
|
"opacity": "1",
|
|
"panelTypes": "value",
|
|
"query": {
|
|
"builder": {
|
|
"queryData": [
|
|
{
|
|
"dataSource": "metrics",
|
|
"queryName": "A",
|
|
"aggregateOperator": "sum",
|
|
"aggregateAttribute": {
|
|
"key": "alerts_active",
|
|
"dataType": "int64",
|
|
"type": "Gauge",
|
|
"isColumn": false
|
|
},
|
|
"timeAggregation": "latest",
|
|
"spaceAggregation": "sum",
|
|
"functions": [],
|
|
"filters": {
|
|
"items": [
|
|
{
|
|
"key": {
|
|
"key": "serviceName",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": true
|
|
},
|
|
"op": "=",
|
|
"value": "{{.service}}"
|
|
}
|
|
],
|
|
"op": "AND"
|
|
},
|
|
"expression": "A",
|
|
"disabled": false,
|
|
"having": [],
|
|
"stepInterval": 60,
|
|
"limit": null,
|
|
"orderBy": [],
|
|
"groupBy": [],
|
|
"legend": "Active Alerts",
|
|
"reduceTo": "sum"
|
|
}
|
|
],
|
|
"queryFormulas": []
|
|
},
|
|
"queryType": "builder"
|
|
},
|
|
"fillSpans": false,
|
|
"yAxisUnit": "none"
|
|
},
|
|
{
|
|
"id": "alert-rate",
|
|
"title": "Alert Rate",
|
|
"description": "Rate of alerts over time",
|
|
"isStacked": false,
|
|
"nullZeroValues": "zero",
|
|
"opacity": "1",
|
|
"panelTypes": "graph",
|
|
"query": {
|
|
"builder": {
|
|
"queryData": [
|
|
{
|
|
"dataSource": "metrics",
|
|
"queryName": "A",
|
|
"aggregateOperator": "sum",
|
|
"aggregateAttribute": {
|
|
"key": "alerts_total",
|
|
"dataType": "int64",
|
|
"type": "Counter",
|
|
"isColumn": false
|
|
},
|
|
"timeAggregation": "rate",
|
|
"spaceAggregation": "sum",
|
|
"functions": [],
|
|
"filters": {
|
|
"items": [
|
|
{
|
|
"key": {
|
|
"key": "serviceName",
|
|
"dataType": "string",
|
|
"type": "tag",
|
|
"isColumn": true
|
|
},
|
|
"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": "alerts/s"
|
|
}
|
|
]
|
|
} |