alerting-dashboards-plugin
alerting-dashboards-plugin copied to clipboard
[BUG] Data source empty when creating monitor
What is the bug?
When creating a monitor in the alerting plugin, the data source selection is empty unless the necessary permissions are granted for all indices, i.e. "*"
.
How can one reproduce the bug? Steps to reproduce the behavior:
- Go to 'Alerting' - 'Monitors'
- Click on 'Create monitor'
- Scroll down to 'Data source'
- Click on 'Select indices'
What is the expected behavior? Data sources should show up.
What is your host/environment?
- Installed on a k8s cluster via Helm chart
- Opensearch and Dashboards: Tested with App Versions 2.3, 2.6 and 2.7
- Alerting/Security plugins
Do you have any screenshots?
Do you have any additional context? The issue does not occur with the following permissions:
cluster_permissions:
- cluster_monitor
- cluster:admin/opendistro/alerting/*
- cluster:admin/opensearch/notifications/*
index_permissions:
- index_patterns:
- "*"
allowed_actions:
- indices_monitor
- indices:admin/aliases/get
- indices:admin/mappings/get
But when trying to set the same permissions for any index_patterns
other than "*"
the issue occurs.
Might be related to this issue.
hi @amsiglan @AWSHurneyt , could you please look into it?
I can add that we have since upgraded to Opensearch and Opensearch Dashboards v2.12.0 - The dropdown menu is still empty but we are now able to use the text field to search for an index, select it and create a monitor that way.