Skip to content

Commit

Permalink
Merge branch 'master' into add_grafana_loki_tool
Browse files Browse the repository at this point in the history
  • Loading branch information
nherment authored Jan 15, 2025
2 parents f8c330c + db26d6c commit 109cbd5
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ To this 👇

### Key Features
- **Automatic data collection:** HolmesGPT surfaces up the observability data you need to investigate
- **Secure:** *Read-only* access to your data - respects RBAC permissions
- **Runbook automation and knowledge sharing:** Tell Holmes how you investigate today and it will automate it
- **Extensible:** Add your own data sources (tools) and Holmes will use them to investigate
- **Data Privacy:** Bring your own API key for any AI provider (OpenAI, Azure, AWS Bedrock, etc)
Expand Down
3 changes: 3 additions & 0 deletions helm/holmes/templates/holmes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ spec:
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 6 }}
{{- end }}
{{- if .Values.affinity }}
affinity: {{ toYaml .Values.affinity | nindent 8 }}
{{- end }}
containers:
- name: holmes
image: "{{ .Values.registry }}/{{ .Values.image }}"
Expand Down
2 changes: 2 additions & 0 deletions helm/holmes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ enablePostProcessing: false
postProcessingPrompt: "builtin://generic_post_processing.jinja2"
openshift: false

affinity: {}

tolerations: []

serviceAccount:
Expand Down
7 changes: 6 additions & 1 deletion holmes/plugins/toolsets/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ toolsets:
}
print namespace, name, sum_memory(requests) " Mi";
}' | sort -k3 -nr
- name: "kubernetes_jq_query"
description: >
Use kubectl to get json for all resources of a specific kind pipe the results to jq to filter them. Do not worry about escaping the jq_expr it will be done by the system on an unescaped expression that you give. e.g. give an expression like .items[] | .spec.containers[].image | select(test("^gcr.io/") | not)
command: kubectl get {{ kind }} --all-namespaces -o json | jq -r {{ jq_expr }}


# NOTE: this is only possible for probes with a healthz endpoint - we do this to avoid giving the LLM generic
# http GET capabilities which are more powerful than we want to expose
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/llm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Here are the possible fields in the `test_case.yaml` yaml file:
Run the following:

```sh
UPLOAD_DATASET=1 RUN_LIVE=1 pytest ./tests/llm/test_ask_holmes.py -k 999_my_test_case
UPLOAD_DATASET=1 RUN_LIVE=1 poetry run pytest ./tests/llm/test_ask_holmes.py -k 999_my_test_case
```

The test may pass or not based on whether the evaluation scores are high enough. If the test fail,
Expand Down

0 comments on commit 109cbd5

Please sign in to comment.