I am using grafana 9.4.7.
I am trying to create new panel using exiting panel which already configured panel for panel.
{
"alert": {
"alertRuleTags": {},
"id": 1,
"conditions": [
{
"evaluator": {
"params": [
5
],
"type": "lt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"2m",
"now"
]
},
"reducer": {
"params": [],
"type": "last"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "2m",
"frequency": "30s",
"handler": 1,
"message": "chethan Done0 workers down",
"name": "chethan Done0 workers down alert",
"noDataState": "no_data",
"notifications": [
]
},
"datasource": {
"type": "prometheus",
"uid": "kSJ1BUCMz"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"No. of pods"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 4,
"x": 16,
"y": 0
},
"id": 52,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "8.3.3",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "kSJ1BUCMz"
},
"editorMode": "code",
"exemplar": true,
"expr": "rajkumar_workers_count{job=\"Done/chethan-metrics\"}",
"instant": false,
"interval": "",
"legendFormat": "No. of pods",
"refId": "A"
}
],
"thresholds": [
{
"colorMode": "critical",
"op": "lt",
"value": 5,
"visible": true
}
],
"title": "chethan rajkumar Done0 workers count",
"type": "timeseries"
}
Above is the panel array am using to create new panel.
- I am using new panel id while creating new panel.
- i am using same datasource for all panel.
Expected result
- Create new panel with alerts configuring.
Current result
- Creating panel without alerts.
@mattabrams