1. A seven-step approach #
Order matters.
The recommended path #
2. Best practices by area #
What to do, and why.
Deployment #
- TLS reverse proxy,
COOKIE_SECURE=true, HTTPSROOT_URL. - Managed, backed-up PostgreSQL, with
SECRET_KEYkept separately. - At least two replicas of each service on Kubernetes, Redis for the shared cache.
- Configuration through versioned environment variables (
values.yaml), secrets inexistingSecrets.
Security #
- SSO (OIDC, SAML or LDAPS) and roles assigned by groups with
GROUP_ROLE_MAPPING. DEFAULT_ROLE=Viewerand default multi-tenant access set tonone.- One service account per automation or agent, with the minimal role; audit review.
Sources and collection #
- Sources provisioned in YAML, secrets as
${VAR},prometheusuid for the main source. - Shared OpenTelemetry attribute convention (
service.name,deployment.environment.name,service.criticality,tenant.id). - Controlled cardinality: no user ID or raw URL as a label.
Dashboards #
- One dashboard per question (service, platform, business), RED and USE methods.
- Variables rather than copies,
$__rate_interval, folders and permissions per team. - Provision reference dashboards so you get them back after a reinstall.
Alerting and reliability #
- Built-in alerts in
automode, copied then tuned when a threshold does not fit. - Routing by severity and service level, grouping by
alertnameandservice_name. - Alert on SLOs (burn rate) for critical services, rather than on every technical symptom.
- Tested escalation chains, post-mortem after every major incident.
AI #
- Local model for sensitive data,
AI_ALLOWED_ROLEandAI_MAX_STEPSset. - Viewer MCP tokens by default; Editor only for supervised agents.
3. Common mistakes and commands #
What goes wrong most often.
Common mistakes #
| Mistake | Consequence | Fix |
|---|---|---|
| Thinking Observa stores data | empty dashboards | deploy or connect Prometheus, Loki, Tempo |
Source uid other than prometheus | shipped dashboards failing | rename the uid or remap on import |
service.criticality missing | every service in bronze | add it to OTEL_RESOURCE_ATTRIBUTES or via relabeling |
Default multi-tenant access set to all | leak between customers | none |
all mode for built-in alerts | noise and pointless rules | stay in auto |
| Bulk import of Sigma rules | SOC alert fatigue | import by level and log source |
Lost SECRET_KEY | source secrets unreadable | back it up with the database |
Commands to know #
# Installation and operations (Docker Compose)
./scripts/generate-env.sh
docker compose pull && docker compose up -d --no-build
docker compose ps
docker compose logs -f api alerting
# Kubernetes
helm install observa observa/observa -n observa --create-namespace -f values.yaml
kubectl -n observa get secret observa-secrets -o jsonpath='{.data.admin-password}' | base64 -d
# API (service account token, Admin role for the cache)
curl -s -H "Authorization: Bearer $TOKEN" $OBS/api/datasources-cache
curl -s -X DELETE -H "Authorization: Bearer $TOKEN" $OBS/api/datasources-cache
curl -s -H "Authorization: Bearer $TOKEN" $OBS/api/alerting/sigma/rules
# AI agents
claude mcp add --transport http observa $OBS/api/mcp --header "Authorization: Bearer $TOKEN"