@@ -14,80 +14,9 @@ library's `user guide <https://github.com/opensearch-project/opensearch-py/blob/
1414`reference documentation <https://opensearch-project.github.io/opensearch-py/api-ref/clients/opensearch_client.html >`_
1515for configuring the connection to Opensearch, including how to authenticate this toolset to an opensearch cluster.
1616
17+ .. code-block :: yaml
1718
18- HolmesGPT will be able to access open search cluster metadata information
19-
20- .. md-tab-set ::
21-
22- .. md-tab-item :: Robusta Helm Chart
23-
24- .. code-block :: yaml
25-
26- holmes :
27- toolsets :
28- opensearch/status :
29- enabled : true
30- config :
31- opensearch_clusters :
32- - hosts :
33- - host1.com
34- - host2.com
35- headers :
36- header1 : " value1"
37- use_ssl : <boolean>
38- ssl_assert_hostname : <boolean>
39- verify_certs : <boolean>
40- ssl_show_warn : <boolean>
41- http_auth :
42- username : <basic auth username>
43- password : <basic auth password>
44-
45- Here is an example of an insecure Opensearch configuration for local development using a bearer token:
46-
47- .. code-block :: yaml
48-
49- holmes :
50- additionalEnvVars :
51- - name : OPENSEARCH_URL
52- value : <opensearch host URL>
53- - name : OPENSEARCH_BEARER_TOKEN
54- value : <secret bearer token>
55- toolsets :
56- opensearch :
57- enabled : true
58- config :
59- opensearch_clusters :
60- - hosts :
61- - host : " {{ env.OPENSEARCH_URL }}"
62- port : 9200
63- headers :
64- Authorization : " Basic {{ env.OPENSEARCH_BEARER_TOKEN }}"
65- use_ssl : true
66- ssl_assert_hostname : false
67- verify_certs : false
68- ssl_show_warn : false
69-
70- .. include :: ./_toolset_configuration.inc.rst
71-
72-
73-
74-
75- .. md-tab-item :: Holmes CLI
76-
77-
78-
79- First create the following environment variables:
80-
81- .. code-block :: shell
82-
83- export OPENSEARCH_URL=" <opensearch host URL>"
84- export OPENSEARCH_BEARER_TOKEN=" <secret bearer token>"
85-
86- Then add the following to **~/.holmes/config.yaml **, creating the file if it doesn't exist:
87-
88-
89- .. code-block :: yaml
90-
19+ holmes :
9120 toolsets :
9221 opensearch/status :
9322 enabled : true
@@ -106,30 +35,32 @@ HolmesGPT will be able to access open search cluster metadata information
10635 username : <basic auth username>
10736 password : <basic auth password>
10837
109- Here is an example of an insecure Opensearch configuration for local development using a bearer token:
38+ Here is an example of an insecure Opensearch configuration for local development using a bearer token:
11039
111- .. code-block :: yaml
40+ .. code-block :: yaml
11241
113- toolsets :
114- opensearch :
115- enabled : true
116- config :
117- opensearch_clusters :
118- - hosts :
119- - host : $OPENSEARCH_URL
120- port : 9200
121- headers :
122- Authorization : $OPENSEARCH_BEARER_TOKEN
123- use_ssl : true
124- ssl_assert_hostname : false
125- verify_certs : false
126- ssl_show_warn : false
127-
128- To test, run:
42+ holmes :
43+ additionalEnvVars :
44+ - name : OPENSEARCH_URL
45+ value : <opensearch host URL>
46+ - name : OPENSEARCH_BEARER_TOKEN
47+ value : <secret bearer token>
48+ toolsets :
49+ opensearch :
50+ enabled : true
51+ config :
52+ opensearch_clusters :
53+ - hosts :
54+ - host : " {{ env.OPENSEARCH_URL }}"
55+ port : 9200
56+ headers :
57+ Authorization : " Basic {{ env.OPENSEARCH_BEARER_TOKEN }}"
58+ use_ssl : true
59+ ssl_assert_hostname : false
60+ verify_certs : false
61+ ssl_show_warn : false
12962
130- .. code-block :: yaml
131-
132- holmes ask "why is my application failing? Look into openshift data"
63+ .. include :: ./_toolset_configuration.inc.rst
13364
13465Capabilities
13566------------
@@ -146,4 +77,4 @@ Capabilities
14677 * - opensearch_get_cluster_settings
14778 - Retrieve the cluster's settings
14879 * - opensearch_get_cluster_health
149- - Retrieve the cluster's health
80+ - Retrieve the cluster's health
0 commit comments