alerting-dashboards-plugin icon indicating copy to clipboard operation
alerting-dashboards-plugin copied to clipboard

[BUG] Data source empty when creating monitor

Open lunkan93 opened this issue 1 year ago • 2 comments

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:

  1. Go to 'Alerting' - 'Monitors'
  2. Click on 'Create monitor'
  3. Scroll down to 'Data source'
  4. 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? image

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.

lunkan93 avatar May 22 '23 11:05 lunkan93

hi @amsiglan @AWSHurneyt , could you please look into it?

sbcd90 avatar Apr 29 '24 19:04 sbcd90

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.

lunkan93 avatar Apr 30 '24 07:04 lunkan93