Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cross-Cluster Monitors do not allow wildcards in cluster names or index names #900

Open
bakert-96 opened this issue Mar 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bakert-96
Copy link

What is the bug?
During monitor creation, the user is not able to specify a wildcard for remote clusters or remote indices.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Set up two 2.12 clusters with Dashboards UI and test data that allow cross-cluster search (following the CCS documentation here and updating docker-compose to include Dashboards UI service).

  2. Set the cluster setting plugins.alerting.remote_monitoring_enabled on the coordinating cluster to true

  3. Navigate to the Create Monitor screen on the coordinating cluster (leave the default Per query monitor type and visual editor defining method) and click on the drop-down to select clusters. It correctly lists the local and remote clusters configured.
    Screenshot 2024-03-04 at 7 11 04 PM

  4. After typing in a cluster prefix with the wildcard *, no options are found.
    Screenshot 2024-03-04 at 7 11 28 PM

  5. After selecting the remote cluster from the cluster drop-down, the user is able to click on the indexes drop-down to select remote indices. It correctly lists the remote indices before and while typing an index name.
    Screenshot 2024-03-04 at 7 13 12 PM

  6. After typing in a remote index prefix with the wildcard *, no options are found.
    Screenshot 2024-03-04 at 7 13 24 PM

The mappings are also not found after hitting enter and the user is not able to select a Time Field or do anything else that requires mappings.
Screenshot 2024-03-04 at 7 13 41 PM

What is the expected behavior?
We expected to be able to use a wildcard to specify clusters for the monitor. We also expected to be able to use a wildcard to specify remote indices after specifying the clusters.

Do you have any additional context?
We had some discussions with the OpenSearch team about this recently as we opened a PR to allow users to use wildcards when specifying remote clusters/indices. However, the OpenSearch team had created a feature for cross-cluster monitors with some additional requirements so they opted to make the changes on their end. In the discussions, we had asked if wildcards would be allowed when specifying remote cluster/index names and the OpenSearch team said it would be supported in their version. Are there plans to add this in the future?

If any additional info is needed, please let me know!

@bakert-96 bakert-96 added bug Something isn't working untriaged labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants