1. Installing with Docker Compose #
Download, generate secrets, start.
In three steps #
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:3000The 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.
Watch out : There is no default password: if you lose the one printed by the script, read theADMIN_PASSWORDvariable in.env. Never commit that file.
First steps #
- Connect sources: Connections → Data sources menu, or YAML files in
deploy/provisioning/datasources/. - Configure contact points (Teams, Slack, e-mail, ServiceNow…).
- Pick your Prometheus in Built-in alerts & SLA → Settings to enable built-in alerts.
- 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=trueand an HTTPSROOT_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_KEYencrypts 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 -dlogging: { 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-fullBest practice : Disable the embedded database (postgresql.enabled: false) and reference existing secrets (existingSecret) created by your secret management tool:values.yamlcan then be committed safely.
Good to know : The chart's NetworkPolicies only filter ingress: allow egress from thequery(to sources),alerting(to notifications),api(to LDAP, OIDC, SAML) andai(to the AI provider) pods.
3. Configuring #
Environment variables, database and cache.
The principle #
Observa follows the “12-factor” approach: everything is set through environment variables (.env with Compose, values.yaml with Helm). An environment variable locks the matching field in the interface.
Main variables #
| Variable | Default | Role |
|---|---|---|
ROOT_URL | http://localhost:3000 | public URL (links, SSO) |
DATABASE_URL | postgresql+psycopg://observa:observa@db:5432/observa | API database |
ADMIN_USER / ADMIN_PASSWORD | admin / to set | initial administrator |
LOCAL_AUTH_ENABLED | True | local accounts |
PASSWORD_MIN_LENGTH | 10 | minimum length |
DEFAULT_ROLE | Viewer | role of new accounts |
SESSION_HOURS / COOKIE_SECURE | 8 / False | session length, HTTPS cookie |
DB_AUTO_CREATE | true | creates databases (CREATEDB right) |
QUERY_WORKERS | 16 | parallel queries of the query service |
ALERTING_TICK_SECONDS | 5 | evaluator tick |
PROVISIONING_DIR | /etc/observa/provisioning | provisioned sources and dashboards |
OTEL_ENABLED | False | Observa self-instrumentation |
The query cache #
| Variable | Default | Role |
|---|---|---|
QUERY_CACHE_ENABLED | true | enables the cache |
QUERY_CACHE_TTL | 30 | time to live (s) |
QUERY_CACHE_MAX_ENTRIES | 2000 | in-memory entries (LRU) |
QUERY_CACHE_MAX_ITEM_KB | 2048 | maximum response size |
QUERY_CACHE_REDIS_URL | empty | cache shared across replicas (Helm: query.cache.redisUrl) |
The hit rate is tracked with observa_query_cache_total{result="hit|miss"}; an administrator clears the cache with DELETE /api/datasources-cache or a single source's cache with DELETE /api/datasources/{uid}/cache.
Best practice : With several query replicas, plug in Redis: otherwise each replica has its own cache and the hit rate drops. A dashboard opened by 50 people should trigger only one query per panel to Prometheus.4. Operating #
Upgrades, self-observability and troubleshooting.
Upgrading #
docker compose pull && docker compose up -d --no-build
docker compose ps
docker compose logs -f api alertingBack up PostgreSQL before an upgrade. On Kubernetes: helm upgrade observa observa/observa -n observa -f values.yaml.
Observing Observa #
Python services instrument themselves with OpenTelemetry (OTEL_ENABLED=true, OTLP endpoint) and log in JSON (logging.format: json). The cache exposes its metrics; also watch the PostgreSQL database and source latency.
Troubleshooting #
| Symptom | Lead |
|---|---|
| The UI does not answer on port 3000 | docker compose ps, then docker compose logs ui api |
| The API restarts in a loop | wrong DATABASE_URL, or CREATEDB right missing with DB_AUTO_CREATE=true |
| Logged out right after logging in | COOKIE_SECURE=true without HTTPS |
| Notification links point to localhost | ROOT_URL not set |
| A field is greyed out in the UI | it is enforced by an environment variable |
| Source secrets unreadable after migration | SECRET_KEY differs from the original |
