From 4269ad152d93fe5933989a7a2872301ac51735c3 Mon Sep 17 00:00:00 2001 From: Dima Chievtaiev Date: Fri, 6 Dec 2024 03:47:08 +0100 Subject: [PATCH] Updated ai-analysis.rst --- docs/configuration/ai-analysis.rst | 246 +++++++++++++++++++---------- 1 file changed, 163 insertions(+), 83 deletions(-) diff --git a/docs/configuration/ai-analysis.rst b/docs/configuration/ai-analysis.rst index 3bb0e620f..cc9addc94 100644 --- a/docs/configuration/ai-analysis.rst +++ b/docs/configuration/ai-analysis.rst @@ -299,12 +299,48 @@ Advanced - Customizing HolmesGPT ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Adding Custom Tools to Holmes +Holmes Toolsets ------------------------------------- -Holmes allows you to define custom toolsets that enhance its functionality by enabling additional tools to run Kubernetes commands or other tasks. +Holmes allows you to define tools that enhance its functionality by enabling additional tools to run Kubernetes commands or other tasks. + +Default Toolsets in Holmes +-------------------------- +Holmes comes with a set of default toolsets that provide tools out-of-the-box. Some of these toolsets are enabled by default such as interacting with Kubernetes resources, or fetching logs and metrics. +Full list can be found `here `_ + +By default, any of the toolsets may be disabled. You can enable or disable them by modifying the ``generated_values.yaml`` file. + +.. code-block:: yaml + enableHolmesGPT: true + holmes: + additionalEnvVars: + - name: ROBUSTA_AI + value: "true" + toolsets: + kubernetes/logs: + enabled: false + +After making changes, apply them using Helm: + +.. code-block:: bash + + helm upgrade robusta robusta/robusta --values=generated_values.yaml --set clusterName= + + +Additionally, you can overwrite any of the fields in the default toolsets, such as updating the tools, prerequisites, or descriptions, to customize them for your specific needs. +For example: + +.. code-block:: yaml + enableHolmesGPT: true + holmes: + additionalEnvVars: + - name: ROBUSTA_AI + value: "true" + toolsets: + kubernetes/logs: + description: "My custom description for default toolset." -In this guide, we will show how to add a custom toolset to Holmes in your ``generated_values.yaml`` file. How to define a toolset? ------------------------------------- @@ -319,19 +355,22 @@ A toolset is defined in ``generated_values.yaml``. Each toolset has a unique nam description: "" docs_url: "" icon_url: "" + tags: + - installation_instructions: "" variables: : "" prerequisites: - command: "" + expected_output: "" - env: - - "" + - "" additional_instructions: "" tools: - name: "" description: "" - command: "" - script: "" + command: "" + script: "