grafana/pkg/services/alerting/testdata/panel-with-datasource-ref.json
Ryan McKinley 7319efe077
Dashboard: replace datasource name with a reference object (#33817)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Elfo404 <me@giordanoricci.com>
2021-10-29 10:57:24 -07:00

39 lines
866 B
JSON

{
"id": 57,
"title": "Graphite 4",
"originalTitle": "Graphite 4",
"tags": ["graphite"],
"panels": [
{
"title": "Active desktop users",
"id": 2,
"editable": true,
"type": "graph",
"targets": [
{
"refId": "A",
"target": "aliasByNode(statsd.fakesite.counters.session_start.desktop.count, 4)"
}
],
"datasource": {
"uid": "graphite2-uid",
"type": "graphite"
},
"alert": {
"name": "name1",
"message": "desc1",
"handler": 1,
"frequency": "60s",
"conditions": [
{
"type": "query",
"query": { "params": ["A", "5m", "now"] },
"reducer": { "type": "avg", "params": [] },
"evaluator": { "type": ">", "params": [100] }
}
]
}
}
]
}