Grafana (8.5.4) alert label in HTTP Dashboard API


I have defined labels for Grafana alert created through UI. Based on one of the label, alert notification is sent out. When I check panel JSON from UI, I am unable to find these labels. Also, Grafana dashboard API example given in documentation does not show where to place these if we want to create alert via API.

Grafana dashboard API to create/update Alert

Any idea why alert labels are not showing up in JSON inspected through UI or where to put these in dashboard JSON created by API. Thanks

sounds like you are using the legacy alerting platform.

Here are the newest stable API endpoints for provisioning Grafana alerts. Note that these are only for the newer Unified Alerting platform: