RousselTMLEARNING

Article · Observa: from discovery to expertise

Installing Observa

1. Installing with Docker Compose #

Download, generate secrets, start.

In three steps #

Installation in three steps
Prerequisites: Docker 24+ and Docker Compose v2. · Illustration: Observa documentation
mkdir observa && cd observa
curl -fsSLO https://observa.rousseltm.fr/download/observa-compose.tar.gz
curl -fsSLO https://observa.rousseltm.fr/download/observa-compose.tar.gz.sha256
sha256sum -c observa-compose.tar.gz.sha256
tar xzf observa-compose.tar.gz
./scripts/generate-env.sh
docker compose pull && docker compose up -d --no-build
# → http://localhost:3000

The archive contains compose.yml, .env.example, the secret generation script and the provisioning folder. Images are published on ghcr.io/rousseltm. The generate-env.sh script creates the .env file with random secrets and prints the administrator password (admin account) and the alert ingest token: write them down.

Observa stack running
Only port 3000 (UI) is exposed; PostgreSQL is embedded through the embedded-db profile.
Watch out : There is no default password: if you lose the one printed by the script, read the ADMIN_PASSWORD variable in .env. Never commit that file.

First steps #

  1. Connect sources: Connections → Data sources menu, or YAML files in deploy/provisioning/datasources/.
  2. Configure contact points (Teams, Slack, e-mail, ServiceNow…).
  3. Pick your Prometheus in Built-in alerts & SLA → Settings to enable built-in alerts.
  4. Point Prometheus at Observa's Alertmanager API to centralize its alerts.

Going to production #

ROOT_URL=https://observa.example.com
COOKIE_SECURE=true
DATABASE_URL=postgresql+psycopg://observa:<mot-de-passe>@pg.example.com:5432/observa
SESSION_HOURS=8
LOG_LEVEL=INFO
OTEL_ENABLED=true
QUERY_CACHE_REDIS_URL=redis://redis:6379/0
  • A TLS reverse proxy in front of Observa, with COOKIE_SECURE=true and an HTTPS ROOT_URL (notification links, SSO).
  • A managed, backed-up PostgreSQL rather than the embedded one.
  • Secrets (SECRET_KEY, SERVICE_TOKEN, ALERT_INGEST_TOKEN) generated once and kept: SECRET_KEY encrypts source secrets in the database.
Common mistake : Changing SECRET_KEY afterwards makes stored source secrets unreadable: back it up with the database.

2. Installing on Kubernetes #

Helm chart, external database and secrets.

The Helm chart #

# Registre OCI (GHCR)
helm install observa oci://ghcr.io/rousseltm/charts/observa -n observa --create-namespace \
  --set rootUrl=https://observa.example.com \
  --set ingress.enabled=true --set ingress.host=observa.example.com

# or classic Helm repository
helm repo add observa https://observa.rousseltm.fr/charts
helm install observa observa/observa -n observa --create-namespace

# Administrator password
kubectl -n observa get secret observa-secrets -o jsonpath='{.data.admin-password}' | base64 -d
logging: { format: json, level: INFO }
otel: { enabled: true, endpoint: http://otel-collector.monitoring:4318 }
config:
  SESSION_HOURS: "12"
api:
  extraEnv:
    - name: GROUP_ROLE_MAPPING
      value: "GG-Admins:Admin"
existingSecret: observa-secrets
postgresql:
  enabled: false
externalDatabase:
  host: pg.example.com
  existingSecret: observa-db
  sslmode: verify-full
Best practice : Disable the embedded database (postgresql.enabled: false) and reference existing secrets (existingSecret) created by your secret management tool: values.yaml can then be committed safely.
Good to know : The chart's NetworkPolicies only filter ingress: allow egress from the query (to sources), alerting (to notifications), api (to LDAP, OIDC, SAML) and ai (to the AI provider) pods.

📄 Installing Observa: Docker Compose, Kubernetes and configuration →

My progress

  • ⏱ Estimated time : ≈ 8 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Recommended Articles

Installing Grafana Loki (Docker Compose, binary and Helm)

Install and validate Grafana Loki: minimal configuration, Docker Compose with Grafana and Alloy, ...

Installing Grafana Tempo (Docker Compose, binary and Helm)

Install Grafana Tempo: the tempo.yaml configuration, Docker Compose with Grafana and Prometheus, ...

Securing Observa: authentication, roles and multi-tenancy

Configure access to Observa: local accounts, LDAP and Active Directory, OIDC, SAML, auth proxy, r...

Observa best practices

Best practices to run Observa in production: deployment, security, sources, dashboards, alerting,...

Discovering Observa: the self-hosted observability console

What Observa is, what it adds to Grafana OSS, its five-service architecture, its parity with Graf...

Connecting sources and collecting telemetry for Observa

Declare data sources in Observa (UI or provisioning), handle authentication, PKI, mTLS and proxy,...

Dashboards, Explore and Drilldown in Observa

Build Grafana v2 dashboards in Observa: visualizations, variables, transformations, import from g...

Alerting in Observa: rules, notifications, built-in alerts, SLA and Sigma

Write alert rules in Prometheus format, route notifications in Alertmanager format, enable the 1,...

SLOs, on-call and incidents in Observa

Define SLOs in Observa (error budget, burn rate, multi-window alerts), organize on-call and escal...

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!