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] Version 2.11.1 doesn't support Alerts API #7568

Closed
oshi36 opened this issue Jul 30, 2024 · 7 comments
Closed

[BUG] Version 2.11.1 doesn't support Alerts API #7568

oshi36 opened this issue Jul 30, 2024 · 7 comments
Labels
bug Something isn't working untriaged

Comments

@oshi36
Copy link

oshi36 commented Jul 30, 2024

I am using opensearch v2.11.1 and trying to query opensearch API for getting alerts at this path according to the documentation.

GET _plugins/_alerting/monitors/alerts

This path is returning me null as a result. On going further I have found that there is not alert index as well under indices which I can query .

@oshi36 oshi36 added bug Something isn't working untriaged labels Jul 30, 2024
@Hailong-am
Copy link
Collaborator

I am using opensearch v2.11.1 and trying to query opensearch API for getting alerts at this path according to the documentation.

GET _plugins/_alerting/monitors/alerts

This path is returning me null as a result. On going further I have found that there is not alert index as well under indices which I can query .

@oshi36 can you run GET _cat/plugins to check whether alerting plugin has been installed?

@oshi36
Copy link
Author

oshi36 commented Jul 30, 2024

I am using opensearch v2.11.1 and trying to query opensearch API for getting alerts at this path according to the documentation.

GET _plugins/_alerting/monitors/alerts

This path is returning me null as a result. On going further I have found that there is not alert index as well under indices which I can query .

@oshi36 can you run GET _cat/plugins to check whether alerting plugin has been installed?

yes @Hailong-am it is installed , opensearch-alerting 2.11.1.0

@oshi36
Copy link
Author

oshi36 commented Jul 30, 2024

Also when listing monitors under data sources for each monitor I can see this

"data_sources": {
       "query_index": ".opensearch-alerting-queries",
       "findings_index": ".opensearch-alerting-finding-history-write",
       "findings_index_pattern": "<.opensearch-alerting-finding-history-{now/d}-1>",
       "alerts_index": ".opendistro-alerting-alerts",
       "alerts_history_index": ".opendistro-alerting-alert-history-write",
       "alerts_history_index_pattern": "<.opendistro-alerting-alert-history-{now/d}-1>",
       "query_index_mappings_by_type": {},
       "findings_enabled": false
     },

But I can't find any query_index or alerts_index in my indices

@Hailong-am
Copy link
Collaborator

Hailong-am commented Jul 30, 2024

But I can't find any query_index or alerts_index in my indices

try GET _cat/indices?expand_wildcards=all, note they are system indices, you can not query them directly. To query data you need interact with API

@oshi36
Copy link
Author

oshi36 commented Jul 30, 2024

Found this on running the above command /.opendistro-alerting-alerts but how can I get alerts with this?

@kavilla
Copy link
Member

kavilla commented Aug 6, 2024

@opensearch-project/admin could you please re-direct this to alerting dashboards repo.

@oshi36
Copy link
Author

oshi36 commented Aug 6, 2024

My issue resolved.I am closing this issue
thank you.

@oshi36 oshi36 closed this as completed Aug 6, 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 untriaged
Projects
None yet
Development

No branches or pull requests

3 participants