...
Make sure to create a folder (namespace) for where the alerts need to be imported. Following command will use <NAMESPACE> as the placeholder for thisUpdate folderUID and ruleGroup in the alert json to match the folder where you wish to create the alert rule.
If using command line (using the HTTP API), you will need an API key with admin privilege. You can create an API key by following these instructions.
Code Block # the curl command to import alerts. curl -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <API_KEY>' \ -X POST http://<cluster-address>/grafana/api/ruler/grafana/api/v1/rules/<NAMESPACE> -d @<converted-file-location.json>
...