This repository has been archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
GET _opendistro/_alerting/monitors/alerts api returning http error code 404 #479
Comments
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. |
Hi,
Find details below . _opendistro/alerting/stats returning output but
_opendisrto/alerting/monitors/alerts returns nothing.
[image: image.png]
…On Tue, Apr 27, 2021 at 10:48 PM Rini Singh ***@***.***> wrote:
Hi, with ODFE version 1.1.0 which is latest, i am getting below error for
api.
odfe-cli curl get --path "_opendistro/_alerting/monitors/alerts"
get Command failed.
Reason: GET https://localhost:9200/_opendistro/_alerting/monitors/alerts
giving up after 5 attempt(s): Get "
https://localhost:9200/_opendistro/_alerting/monitors/alerts": http:
server gave HTTP response to HTTPS client
On Tue, Apr 27, 2021 at 10:36 PM Rini Singh ***@***.***>
wrote:
> Hi Andrew, I am trying api via curl command, other apis are working fine
> without ODFE.
>
> On Tue, 27 Apr 2021, 22:07 Andrew Etter, ***@***.***>
> wrote:
>
>> Hi @rini2208 <https://github.com/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.
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#479 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AT3NVSQZ6ZUGBAWOKTN4M23TK3R33ANCNFSM43U4Z6JQ>
>> .
>>
>
|
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. |
Version number 1.1.0 and i am running it from inside kuberentes container. |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While trying to fetch monitors for alert using api GET _opendistro/_alerting/monitors/alerts, i am getting error 404.
The text was updated successfully, but these errors were encountered: