Does Kibana Alerting API also configure Elastic Stack Monitoring Alerts?

I have been using Kibana Alert API to create stack monitoring alerts for elastic search cluster, however, it doesn't work:

POST /api/alerts/alert
         "group":"threshold met",
            "message":"alert \u0027{{alertName}}\u0027 is active for group \u0027{{}}\u0027:\n\n- Value: {{context.value}}\n- Conditions Met: {{context.conditions}} over {{params.timeWindowSize}}{{params.timeWindowUnit}}\n- Timestamp: {{}}"
   "name":"my cpu alert",

Does Kibana Alert API work for creating Elastic Stack Monitoring Alerts or only Kibana Alerts?

@Sumit_Gupta2 welcome to the community!
It's not clear from your question what the issue is with the alert. Do you have stack monitoring set up? Can Kibana read from those monitoring indices? Do you have a license > basic?
Alerts created in Kibana can only be done with indices that Kibana has access to.

Thanks @cheiligers . So I am looking for an API which will do stack monitoring, do we have one?

There's a bit more involved with setting up monitoring but it's not too complicated!
There are some great walk-throughs in the elastic docs and I'd start with this introduction.
Here's a link to the monitoring docs: Stack Monitoring | Kibana Guide [7.13] | Elastic
There's a whole forum on monitoring if you need some advice.

Thanks @cheiligers . Do you know the api endpoint for configuring stack monitoring alerts please?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.