Observability stack

From streamer45/streamkit · View interactive version

Observability stack is an AI agent skill from the GitHub repository streamer45/streamkit. Spin up StreamKit's local observability stack (skit + Prometheus + Grafana, optional speech gateway) and validate the Grafana dashboards end-to-end. Use when testing metrics/dashboards, debugging empty dashboard panels, or reproducing the speech-gateway monitoring setup locally.

How to use this skill

Skill file

Observability stack (local)

samples/observability/ is a docker compose stack that runs skit + Prometheus

dashboards. Use it to validate metrics and dashboards without any cloud setup.

Run it

cd samples/observability
docker compose up -d
./generate-traffic.sh                 # direct-to-skit TTS+STT
# optional gateway row (overlay adds the service + its Prometheus scrape):
docker compose -f docker-compose.yml -f docker-compose.gateway.yml up -d --build
./generate-traffic.sh --gateway

Grafana: <http://localhost:3000> (anonymous admin). Prometheus:

<http://localhost:9090>. skit: <http://localhost:4545>.

How metrics flow

--web.enable-otlp-receiver; skit's SK_TELEMETRY__OTLP_ENDPOINT points at

…/api/v1/otlp/v1/metrics. There is no scrape job for skit.

Validate dashboards (don't just eyeball)

OTLP renames dotted metrics and appends unit suffixes, so verify the metric

names/labels the panels query actually exist before trusting a panel:

# list all metric names Prometheus knows about
curl -s localhost:9090/api/v1/label/__name__/values | jq -r '.data[]' | sort
# run a panel's exact PromQL and count series (0 == panel will be "No data")
curl -s --data-urlencode 'query=<promql>' localhost:9090/api/v1/query \
  | jq '.data.result | length'
# inspect a metric's labels
curl -s 'localhost:9090/api/v1/series?match[]=<metric>' | jq

Key name/label facts:

plugin_calls_total; labels plugin_kind, op.

labels status, and service only when the pipeline declares

attributes: { service: ... } and a service-label-aware skit has the matching

[server.metrics.attributes.service] policy enabled.

gateway_request_duration_seconds, gateway_rejected_total{reason} (only

appears after a 413/415/502 actually occurs).

Expected "No data" (not bugs)

until a failure happens.

label (pipeline attributes + enabled [server.metrics.attributes.service]

policy; the pinned v0.5.0-demo predates this).

Gotchas

The canonical list of setup gotchas (stale latest-demo, demo-image plugin

layout, model-name matching, by Service panels, local-auth override,

${DS_PROMETHEUS} datasource) lives in

CODE0

— keep it there to avoid drift. One detail specific to editing the stack: in

compose command: strings, escape the datasource input as $${DS_PROMETHEUS}

so compose doesn't interpolate it before dashboard-prep runs.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.