Hi , Does signoz have API's to create alerts?
# general
p
Hi , Does signoz have API's to create alerts?
d
They've just started on the path of creating a terraform provider to help with this. https://registry.terraform.io/providers/SigNoz/signoz/latest/docs/resources/alert
🙌 1
👍 1
b
Our team did some digging into this. You can use the api <instance>.SigNoz.cloud/api/v1/rules You need to et an api token from your account and set the header of your request to SIGNOZ-API-KEY as the key and then your token as the value If you open the chrome network tab when you save a new alerts you can see the api call to this same endpoint and RIP out the JSON there to see the correct formatting for your payload.
👀 1
🔥 2
Not documented but it works for now. There is also the TF provider in progress as mentioned
c
Thanks @Darren Smith for sharing out the terraform link. Really good work decoding the API @Ben Mask 🙌 We recently migrated to a new website and the SigNoz API doc is yet to be migrated (PR here). Till then. You can use this as a reference for the API - old website API spec doc.
🙌 1
p
Thanks Darren & Ben.