Closed josiasnonato closed 4 weeks ago
Adding an information:
I've tried to create monitor with API following the oficial documentation. But it was unsuccessful.
Using the API creates the monitor and one Action, but I can't edit and select my channel.
I used this command in Opensearch Dashboards DevTools:
POST _plugins/_alerting/monitors
{
"name": "my-monitor-test-2",
"type": "monitor",
"monitor_type": "query_level_monitor",
"enabled": true,
"schedule": {
"period": {
"unit": "MINUTES",
"interval": 1
}
},
"inputs": [
{
"search": {
"indices": [
"logs-ns-argocd*"
],
"query": {
"size": 0,
"aggregations": {},
"query": {
"bool": {
"filter": [
{
"range": {
"@timestamp": {
"gte": "{{period_end}}||-10m",
"lte": "{{period_end}}",
"format": "epoch_millis"
}
}
},
{
"match_phrase": {
"stream": "stderr"
}
}
]
}
}
}
}
}
],
"triggers": [
{
"query_level_trigger": {
"id": "8ofoEpABAV0q5COWFoqX",
"name": "greater-than-10",
"severity": "1",
"condition": {
"script": {
"source": "ctx.results[0].hits.total.value > 10",
"lang": "painless"
}
},
"actions": [
{
"name": "test-action",
"destination_id": "my-private",
"message_template": {
"source": "This is my message body."
},
"throttle_enabled": true,
"throttle": {
"value": 27,
"unit": "MINUTES"
},
"subject_template": {
"source": "TheSubject"
}
}
]
}
}
]
}
@opensearch-project/admin: plz route this to opensearch-project/dashboards-notifications
It has been fixed in 2.15 https://github.com/opensearch-project/notifications/issues/922
Describe the bug
When I create an actions in a Monitor Trigger, the only option is "Manage Channels" with a message: "There are no existing channels. Add a channel to create an action".
I've created a channel, but I can't it in the Trigger Actions.
To Reproduce Steps to reproduce the behavior:
Expected behavior I believe that I should select my channel or select some options to channels
OpenSearch Version Opensearch 2.14.0
Dashboards Version Opensearch Dashboards 2.14.0
Plugins Alerting
Screenshots
The screen of my Notification channels
The screen of my monitor showing the actions page
Host/Environment (please complete the following information):
Additional context