Open ylwu-amzn opened 5 months ago
Hi, I'm working on implementing this tool, which aims to help create alert with natural language. The tool has 3 input parameters:
This tool is able to request LLM by itself and has its own tool prompt, and it can also get some necessary information by calling OS API.
When this tool is selected by chat agent or invoked by flow agent, it will be executed as following steps:
extract the alert configuration from the LLM response as its output.
The tool output format may be like:
Tool output:
{ "name": "Error 500 Response Alert", "search": { "indices": ["opensearch_dashboards_sample_data_logs"], "timeField": "timestamp", "bucketValue": 60, "bucketUnitOfTime": "m", "filters": [ { "fieldName": [ { "label": "response", "type": "text" } ], "fieldValue": "500", "operator": "is" } ], "aggregations": [ { "aggregationType": "count", "fieldName": "bytes" } ] }, "triggers": [ { "name": "Error 500 Response Count Above 1", "severity": 1, "thresholdValue": 1, "thresholdEnum": "ABOVE" } ] }
There is a demo video about creating an alert by LLM: https://broadcast.amazon.com/videos/1159580
We have get alerting monitor tool now. We can create some tool to create alerting monitor.