Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

GET _opendistro/_alerting/monitors/alerts api returning http error code 404 #479

Closed
rini2208 opened this issue Apr 27, 2021 · 6 comments
Closed

Comments

@rini2208
Copy link

While trying to fetch monitors for alert using api GET _opendistro/_alerting/monitors/alerts, i am getting error 404.

@aetter
Copy link
Contributor

aetter commented Apr 27, 2021

Hi @rini2208, which version of ODFE are you running? Get alerts is a relatively recent addition, so if you're running an older version, you might not have it.

@rini2208
Copy link
Author

rini2208 commented Apr 27, 2021 via email

@rini2208
Copy link
Author

image

@aetter
Copy link
Contributor

aetter commented Apr 27, 2021

So there's odfe-cli and ODFE itself. You might have started ODFE from the tarball or Docker or wherever. That's the version number we need. You can figure it out if you run _cat/plugins, or you might have it in your Docker command, etc.

@rini2208
Copy link
Author

rini2208 commented Apr 28, 2021

Version number 1.1.0 and i am running it from inside kuberentes container.

@aetter
Copy link
Contributor

aetter commented Apr 28, 2021

Hey @rini2208, that API is indeed not present in that version. Try upgrading to at least 1.11 (though ideally 1.13.2). odfe-cli is versioned independently, so CLI 1.1 is fine to use with ODFE 1.13.2.

@aetter aetter closed this as completed Apr 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants