mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
0522b7fa41
The monitoring/alerting service is a test harness (probes, assertions, alerting), not an operations service. Rename the directory, package name (@copilotkit/showcase-ops → @copilotkit/showcase-harness), all internal references (Dockerfile, Prometheus metric prefix showcase_ops_ → showcase_harness_, orchestrator log messages, probe YAML nameExcludes, test fixtures), and regenerate pnpm-lock.yaml. Wire protocol names (X-Ops-* headers) and shell-dashboard internal API naming (OPS_BASE_URL, ops-api.ts) are intentionally unchanged — they are stable contracts between sender and receiver.
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
id: tools-red-tick
|
|
name: "Starter tool invocation failing"
|
|
owner: "@oss"
|
|
|
|
signal:
|
|
dimension: tools
|
|
|
|
triggers:
|
|
- green_to_red
|
|
- sustained_red
|
|
- red_to_green
|
|
|
|
conditions:
|
|
escalations:
|
|
- whenFailCount: 4
|
|
mention: "!channel"
|
|
severity: critical
|
|
|
|
guards:
|
|
- minDeployAgeMin: 20
|
|
|
|
rate_limit:
|
|
perKey: "{{signal.slug}}:{{triggerName}}"
|
|
window: 15m
|
|
|
|
suppress:
|
|
when: 'trigger == "sustained_red" && lastAlertAgeMin < 15'
|
|
|
|
targets:
|
|
- kind: slack_webhook
|
|
webhook: oss_alerts
|
|
|
|
# errorDesc is pre-sanitized in showcase/harness/src/probes/drivers/sanitize.ts
|
|
# — triple-brace intentional so literal characters survive to Slack.
|
|
template:
|
|
text: |
|
|
{{#trigger.green_to_red}}:red_circle: *{{signal.slug}}* — tool invocation failed, error: {{{signal.errorDesc}}}{{/trigger.green_to_red}}
|
|
{{#trigger.sustained_red}}:red_circle: *{{signal.slug}}* — tools attempt: {{signal.failCount}}, error: {{{signal.errorDesc}}}{{/trigger.sustained_red}}
|
|
{{#trigger.red_to_green}}:white_check_mark: *{{signal.slug}}* tools recovered (was down since {{signal.firstFailureAt}}){{/trigger.red_to_green}}
|
|
|
|
<{{{env.dashboardUrl}}}|Showcase>{{#event.runId}} · <{{{env.dashboardUrl}}}/runs/{{{event.runId}}}|Run>{{/event.runId}}
|