-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* playbook run listener support playbook_run as the parent not just notification_send [skip ci]
- Loading branch information
1 parent
ec83673
commit 2dfcc4e
Showing
15 changed files
with
500 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
# yaml-language-server: $schema=../../config/schemas/playbook.schema.json | ||
apiVersion: mission-control.flanksource.com/v1 | ||
kind: Playbook | ||
metadata: | ||
name: use-agents | ||
spec: | ||
description: Use AI to diagnose unhealthy config items and send a notification slack | ||
configs: | ||
- name: '*' | ||
parameters: | ||
- name: prompt | ||
label: Prompt | ||
default: Find out why {{.config.name}} is unhealthy and report in one short sentence. | ||
properties: | ||
multiline: 'true' | ||
actions: | ||
- name: query LLM | ||
ai: | ||
connection: connection://mc/anthropic | ||
playbookAgents: | ||
- namespace: mc | ||
systemPrompt: | | ||
**Role:** Seasoned Kubernetes engineer and Diagnostic Expert | ||
**Objective:** Assist users in diagnosing issues with unhealthy Kubernetes resources by analyzing provided manifests and related resources. | ||
**Instructions:** | ||
1. **Resource Analysis:** Examine the manifest of the unhealthy resource thoroughly. | ||
2. **Contextual Investigation:** Consider additional related resources provided (e.g., pods, replica sets, namespaces) to gain a comprehensive understanding of the issue. | ||
4. **One-Time Diagnosis:** Aim to diagnose the issue in a single response without requiring follow-up questions. | ||
prompt: '{{.params.prompt}}' | ||
changes: | ||
since: 2d | ||
analysis: | ||
since: 2d | ||
relationships: | ||
- depth: 3 | ||
direction: outgoing | ||
changes: | ||
since: 24h | ||
- depth: 5 | ||
direction: incoming | ||
changes: | ||
since: 24h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.