RousselTMLEARNING

Observability

Observa best practices

Best practices to run Observa in production: deployment, security, sources, dashboards, alerting, SLOs and AI, with common mistakes and the commands to know.

1. A seven-step approach #

Order matters.

The recommended path #

Rollout approach
Each step builds on the previous one: SLOs assume consistent attributes, AI assumes clean rights.

2. Best practices by area #

What to do, and why.

Deployment #

  • TLS reverse proxy, COOKIE_SECURE=true, HTTPS ROOT_URL.
  • Managed, backed-up PostgreSQL, with SECRET_KEY kept separately.
  • At least two replicas of each service on Kubernetes, Redis for the shared cache.
  • Configuration through versioned environment variables (values.yaml), secrets in existingSecrets.

Security #

  • SSO (OIDC, SAML or LDAPS) and roles assigned by groups with GROUP_ROLE_MAPPING.
  • DEFAULT_ROLE=Viewer and default multi-tenant access set to none.
  • One service account per automation or agent, with the minimal role; audit review.

Sources and collection #

  • Sources provisioned in YAML, secrets as ${VAR}, prometheus uid 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 auto mode, copied then tuned when a threshold does not fit.
  • Routing by severity and service level, grouping by alertname and service_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_ROLE and AI_MAX_STEPS set.
  • Viewer MCP tokens by default; Editor only for supervised agents.

3. Common mistakes and commands #

What goes wrong most often.

Common mistakes #

MistakeConsequenceFix
Thinking Observa stores dataempty dashboardsdeploy or connect Prometheus, Loki, Tempo
Source uid other than prometheusshipped dashboards failingrename the uid or remap on import
service.criticality missingevery service in bronzeadd it to OTEL_RESOURCE_ATTRIBUTES or via relabeling
Default multi-tenant access set to allleak between customersnone
all mode for built-in alertsnoise and pointless rulesstay in auto
Bulk import of Sigma rulesSOC alert fatigueimport by level and log source
Lost SECRET_KEYsource secrets unreadableback 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"

Sources #

Related articles

Discovering Observa: the self-hosted observability console

What Observa is, what it adds to Grafana OSS, its five-service architecture, its parity with Grafana Cloud an…

Installing Observa: Docker Compose, Kubernetes and configuration

Deploy Observa in two minutes with Docker Compose, in production on Kubernetes with Helm, then configure it: …

Securing Observa: authentication, roles and multi-tenancy

Configure access to Observa: local accounts, LDAP and Active Directory, OIDC, SAML, auth proxy, roles and per…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!