Difference between revisions of "OpenSearch Monitor"
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
- 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
_alerting/monitors/
{ "size": 0, "query": { "match_all": {} }, "aggs": { "avg_cpu": { "avg": { "field": "cpu_usage" } } } }
Related[edit]
- OpenSearch destination
destination_id
- Get alerts:
_plugins/_alerting/monitors/alerts
ctx.trigger
See also[edit]
opensearch-cli [ profile list | profile create | ad | curl get ], ~/.opensearch-cli/config.yaml, opensearch-cli --help
- OpenSearch, installation, OpenSearch Dashboards, plugins, OpenSearch Monitor, OpenSearch destination,
opensearch-cli, opensearch.yml
, OpenSearch access control, UltraWarm storage, kNN, fine-grained access, access policy
Advertising: