opendistro-for-elasticsearch / alerting

📟 Open Distro Alerting Plugin
https://opendistro.github.io/for-elasticsearch/features/alerting.html
Apache License 2.0
279 stars 80 forks source link

[BUG] Can not see monitors, destinations, email groups etc in GUI after installing through API #366

Closed melkosoft closed 2 years ago

melkosoft commented 3 years ago

Describe the bug A clear and concise description of what the bug is. I am trying to move alerting staff from one ES to another. The versions are the same - ODFE 1.11.0. I was able to extract alert data from source cluster using API (python script). When I add email accounts and email groups to new cluster using API I got message that they were added (got json with all correct data plus generated id) Going to kibana gui as user with admin rights - nothing in alerts are visible. Checking data using API - inserted data is there. If I run Dev Tools with the same API call - everything is visible from GUI. I am running API calls using "admin" account. What should I include in API call (any headers etc...) in order to have alerts visible. This is my command from script:

curl -k  -H "Content-Type: application/json" -H "Accept: application/json" -u admin:admin -X POST https://elasticsearch:9200/_opendistro/_alerting/destinations/email_groups -d '{"name": "example_email_group","emails": [{ "email": "example@email.com" }]}'

Other plugins installed Please mention if you are using this plugin along side any other plugin. Security for example.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

qreshi commented 2 years ago

Closing in favor of https://github.com/opensearch-project/alerting/issues/97