OpenSearch status¶
By enabling this toolset, HolmesGPT will be able to access cluster metadata information like health, shards, and settings. This allows HolmesGPT to better troubleshoot problems with one or more OpenSearch clusters.
Configuration¶
The configuration for OpenSearch is passed through to the underlying opensearch-py library. Consult this library's user guide or reference documentation for configuring the connection to OpenSearch, including how to authenticate this toolset to an OpenSearch cluster.
Add the following to ~/.holmes/config.yaml. Create the file if it doesn't exist:
toolsets:
opensearch/status:
enabled: true
config:
opensearch_clusters:
- hosts:
- host1.com
- host2.com
headers:
header1: "value1"
use_ssl: <boolean>
ssl_assert_hostname: <boolean>
verify_certs: <boolean>
ssl_show_warn: <boolean>
http_auth:
username: <basic auth username>
password: <basic auth password>
After making changes to your configuration, run:
holmes:
toolsets:
opensearch/status:
enabled: true
config:
opensearch_clusters:
- hosts:
- host1.com
- host2.com
headers:
header1: "value1"
use_ssl: <boolean>
ssl_assert_hostname: <boolean>
verify_certs: <boolean>
ssl_show_warn: <boolean>
http_auth:
username: <basic auth username>
password: <basic auth password>
Here is an example of an insecure OpenSearch configuration for local development using a bearer token:
First, set the environment variables:
export OPENSEARCH_URL="<opensearch host URL>"
export OPENSEARCH_BEARER_TOKEN="<secret bearer token>"
Then add the following to ~/.holmes/config.yaml:
toolsets:
opensearch/status:
enabled: true
config:
opensearch_clusters:
- hosts:
- host: "{{ env.OPENSEARCH_URL }}"
port: 9200
After making changes to your configuration, run:
Capabilities¶
The table below describes the specific capabilities provided by this toolset. HolmesGPT can decide to invoke any of these capabilities when answering questions or investigating issues.
Tool Name | Description |
---|---|
opensearch_cluster_health | Get cluster health information |
opensearch_cluster_stats | Get cluster statistics |
opensearch_node_info | Get information about cluster nodes |
opensearch_index_stats | Get statistics for specific indices |
opensearch_shard_allocation | Get shard allocation information |