To test alertmanager receiver start dummy http server python3 -m http.server 5001
To note intevals and wait_time need to be updated as per notification requirement.
To dynamically update rules you need to update the file and trigger reload of it in thanos ruler. e.g. using curl: curl --request POST 0.0.0.0:10903/-/reload (http-address of ruler)
UI: 0.0.0.0:10903 to view triggered alerts
APIs for rules
/add/\<rule_id> Add alert rule (if the rule id entry already exists it will replace it)