Skip to main content

Analytics DB configuration

The Analytics database uses TimescaleDB/PostgreSQL. The initial connection values are read from .env when the server boots, and any updates made in the web UI override those defaults at runtime.

Analytics DB configuration

Connection settings​

SkyView accepts either a full DSN or individual connection fields:

  • DSN (optional) overrides all other fields when set.
  • Host, Port, Database, User, Password, and SSL mode are used when the DSN is empty.

The corresponding environment variables are:

  • SKY_VIEW_ANALYTICS_ENABLED
  • SKY_VIEW_ANALYTICS_DSN
  • SKY_VIEW_ANALYTICS_HOST
  • SKY_VIEW_ANALYTICS_PORT
  • SKY_VIEW_ANALYTICS_DB
  • SKY_VIEW_ANALYTICS_USER
  • SKY_VIEW_ANALYTICS_PASSWORD
  • SKY_VIEW_ANALYTICS_SSLMODE
  • SKY_VIEW_ANALYTICS_RETENTION_DAYS

Testing before saving​

Use the Refresh status button in the Analytics tab to test the current form values without saving them. SkyView sends those values to the backend and attempts a live connection. If the test fails, the UI shows the detailed error so you can adjust the parameters before applying them.