Difference between revisions of "OpenSearch Monitor"

From wikieduonline
Jump to navigation Jump to search
(Created page with " == See also == * {{Opensearch}} Category:OpenSearch")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* API: https://opensearch.org/docs/latest/monitoring-plugins/alerting/api/
 +
* https://opensearch.org/docs/latest/monitoring-plugins/alerting/monitors/#create-monitors
 +
* https://opensearch.org/docs/latest/monitoring-plugins/alerting/monitors/#available-variables
 +
** <code>[[ctx.monitor]]</code>
  
  
 +
[[_alerting/monitors/]]
  
 +
<pre>
 +
{
 +
  "size": 0,
 +
  "query": {
 +
    "match_all": {}
 +
  },
 +
  "aggs": {
 +
    "avg_cpu": {
 +
      "avg": {
 +
        "field": "cpu_usage"
 +
      }
 +
    }
 +
  }
 +
}
 +
</pre>
 +
 +
== Related ==
 +
* [[OpenSearch destination]]
 +
* <code>[[destination_id]]</code>
 +
* Get alerts: <code>[[_plugins/_alerting/]]monitors/alerts</code>
 +
* <code>[[ctx.trigger]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{opensearch-cli}}
 
* {{Opensearch}}
 
* {{Opensearch}}
  
 
[[Category:OpenSearch]]
 
[[Category:OpenSearch]]

Latest revision as of 11:33, 4 May 2022

Advertising: