stack-init
Installation
SKILL.md
Stack init
Copies a five-component observability stack into observability/ in the repository and brings it up with docker compose. Alloy receives OTLP from the services and forwards metrics to Prometheus and logs to Loki. Prometheus scrapes targets, evaluates the alert rules and sends alerts to Alertmanager. Grafana reads all three through provisioned data sources and loads dashboards from files in git.
Inputs
- The repository: the current working directory, or a path the user names.
- The services to observe: for each, its name, and whether it serves
/metrics(host and port) or sends OTLP. - The teams that receive alerts, as short names (
platform,app). Thealert-routesskill uses them. - Retention for metrics, logs and silences. Defaults: 30 days, 30 days, 120 hours.
- Where the stack runs: this machine only (default), or a host on the network.
Steps
- Check the repository and the tools. Find the root with
git rev-parse --show-toplevel. Rundocker compose versionandpython3 --version(3.9 or later). Ifobservability/exists, list what is in it and ask before going on. - Copy without overwriting.