# Does Kibana Alerting API also configure Elastic Stack Monitoring Alerts?

**URL:** <https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776>\
**Category:** Kibana\
**Tags:** elastic-stack-alerting\
**Created:** [May 24, 2021, 2:15am UTC](https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776 "2021-05-24T02:15:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumit\_Gupta2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sumit_gupta2/32/77467_2.png) [@Sumit\_Gupta2](https://discuss.elastic.co/u/Sumit_Gupta2)\
**Post date:** [May 24, 2021, 2:15am UTC](https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776/1 "2021-05-24T02:15:07Z")

</div>

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

```auto
POST /api/alerts/alert
{
  "params":{
      "aggType":"avg",
      "termSize":6,
      "thresholdComparator":">",
      "timeWindowSize":5,
      "timeWindowUnit":"m",
      "groupBy":"top",
      "threshold":[
         85
      ],
      "timeField":"@timestamp",
      "aggField":"sheet.version",
      "termField":"name.keyword"
   },
   "consumer":"alerts",
   "alertTypeId":".cpu-usage",
   "schedule":{
      "interval":"1m"
   },
   "actions":[
      {
         "id":"dceeb5d0-6b41-11eb-802b-85b0c1bc8ba2",
         "actionTypeId":".pagerduty",
         "group":"threshold met",
         "params":{
            "level":"info",
            "message":"alert \u0027{{alertName}}\u0027 is active for group \u0027{{context.group}}\u0027:\n\n- Value: {{context.value}}\n- Conditions Met: {{context.conditions}} over {{params.timeWindowSize}}{{params.timeWindowUnit}}\n- Timestamp: {{context.date}}"
         }
      }
   ],
   "tags":[
      "cpu"
   ],
   "notifyWhen":"onActionGroupChange",
   "name":"my cpu alert",
   "enabled":"true"

```

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

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [May 25, 2021, 9:04pm UTC](https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776/2 "2021-05-25T21:04:11Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![Sumit\_Gupta2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sumit_gupta2/32/77467_2.png) [@Sumit\_Gupta2](https://discuss.elastic.co/u/Sumit_Gupta2)\
**Post date:** [May 26, 2021, 3:07pm UTC](https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776/3 "2021-05-26T15:07:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cheiligers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cheiligers/32/73114_2.png) [@cheiligers](https://discuss.elastic.co/u/cheiligers)\
**Post date:** [May 26, 2021, 4:42pm UTC](https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776/4 "2021-05-26T16:42:12Z")

</div>

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](https://www.elastic.co/what-is/elasticsearch-monitoring).  
Here's a link to the monitoring docs: [Stack Monitoring | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/xpack-monitoring.html)  
There's a whole [forum on monitoring](https://discuss.elastic.co/tag/elastic-stack-monitoring) if you need some advice.

---

<div class="post-metadata">

**Author:** ![Sumit\_Gupta2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sumit_gupta2/32/77467_2.png) [@Sumit\_Gupta2](https://discuss.elastic.co/u/Sumit_Gupta2)\
**Post date:** [May 26, 2021, 11:55pm UTC](https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776/5 "2021-05-26T23:55:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 23, 2021, 11:56pm UTC](https://discuss.elastic.co/t/does-kibana-alerting-api-also-configure-elastic-stack-monitoring-alerts/273776/6 "2021-06-23T23:56:05Z")

</div>

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