Connect a data source
A data source is a connection to a warehouse, database, query engine, or app that holds your numbers. Lighthouse supports 23 sources, plus hosted Postgres and SQL Server flavors. All connections are read-only and must pass a connection test before they are saved.
Supported sources
Open Data Sources in the sidebar and click Create new data source. The picker groups sources by category:
| Category | Sources |
|---|---|
| Warehouse | Snowflake, BigQuery, Databricks, Amazon Redshift |
| Database | Postgres, SQL Server, MySQL, Oracle Database, ClickHouse, plus the flavors Supabase, Neon, Aurora Postgres, AlloyDB, Timescale (Postgres) and Azure SQL (SQL Server) |
| Query engine | Trino, Amazon Athena |
| Analytics | Mixpanel, Amplitude, PostHog, Google Analytics 4 |
| BI | Looker, Tableau, Metabase |
| Monitoring | Grafana |
| Payments | Stripe |
| CRM | HubSpot |
| Spreadsheet | Google Sheets |
| HTTP API | API Connector (any REST API) |
Warehouses, databases, and query engines work the same way: you create datasets on their tables and views, or write SQL metrics against them. Analytics, BI, monitoring, payments, CRM, and spreadsheet sources work differently: you pick what to read while connecting (events, insights, Looks, views, questions, panels, objects, sheets, or queries), and each one becomes a dataset you can build metrics on.
Warehouses
Snowflake
The form includes a setup script. Fill in Database and Schema, copy the script, and run it in a Snowflake worksheet as ACCOUNTADMIN. It creates a read-only role, a small dedicated warehouse, and a user, grants SELECT on the schema's tables and views, and returns a token_secret. Snowflake shows that token only once.
- Account Identifier
- RequiredYes
- DescriptionYour Snowflake account identifier, e.g. myorg-myaccount
- Username
- RequiredYes
- DescriptionThe read-only user, e.g. LIGHTHOUSE_USER
- Access token
- RequiredYes
- DescriptionThe token_secret from the setup script. A password also works for users that still have one. Stored encrypted
- Database
- RequiredYes
- DescriptionDatabase containing the tables to monitor
- Schema
- RequiredYes
- DescriptionSchema within the database
- Warehouse
- RequiredYes
- DescriptionVirtual warehouse to run queries on
- Role
- RequiredNo
- DescriptionLeave blank to use the user's default role
CURRENT_WAREHOUSE(), CURRENT_DATABASE(), and CURRENT_SCHEMA() and checks that the session values match the fields you entered. If they differ, the test fails. Align the fields with the user's session defaults, or set a role that grants them.After a Snowflake source is created, Lighthouse offers the Snowflake kit, a set of ready-made cost, performance, and reliability metrics.
BigQuery
BigQuery uses a service account JSON key. Create a service account in Google Cloud and grant it BigQuery Data Viewer and BigQuery Job User (project level), and BigQuery Metadata Viewer on the dataset itself.
- Query Project ID
- RequiredYes
- DescriptionGoogle Cloud project used for running queries
- Schema Project ID
- RequiredNo
- DescriptionProject where the dataset lives, if different. Empty uses the Query Project ID
- Dataset Name
- RequiredYes
- DescriptionBigQuery dataset name, e.g. analytics_prod
- Service Account Key JSON
- RequiredYes
- DescriptionPaste the entire JSON key. Stored encrypted
SELECT 1 and fetching dataset metadata. If the dataset check fails, give the service account BigQuery Metadata Viewer on the dataset, not only at project level.Databricks
Use the connection details of a SQL warehouse and a token of a user or service principal that can only SELECT from the tables you want to monitor. Databricks has no read-only mode Lighthouse can switch on, so the token's grants are the limit.
- Server hostname
- RequiredYes
- Descriptione.g. dbc-a1b2c3d4-e5f6.cloud.databricks.com
- HTTP path
- RequiredYes
- DescriptionThe SQL warehouse path, e.g. /sql/1.0/warehouses/abc123def456
- Personal access token
- RequiredYes
- DescriptionToken starting with dapi. Stored encrypted
- Catalog
- RequiredYes
- Descriptione.g. main
- Schema
- RequiredYes
- Descriptione.g. default
Amazon Redshift
Redshift has its own connector. Create a read-only user with SELECT on the tables you want to monitor.
- Host
- RequiredYes
- DescriptionCluster endpoint, e.g. my-cluster.abc123.us-east-1.redshift.amazonaws.com
- Port
- RequiredYes
- DescriptionDefault 5439
- Username
- RequiredYes
- DescriptionRead-only database user
- Password
- RequiredYes
- DescriptionStored encrypted
- Database
- RequiredYes
- Descriptione.g. dev
- Schema
- RequiredYes
- DescriptionDefaults to public
- Verify the server certificate
- RequiredNo
- DescriptionOn by default and recommended. Turn it off only when the host is a proxy or tunnel with its own certificate
Databases
Postgres
Create a read-only user with CONNECT on the database and SELECT on the tables in the target schema. Supabase, Neon, Aurora Postgres, AlloyDB, and Timescale use the same fields.
- Host
- RequiredYes
- DescriptionHostname or IP of your Postgres server
- Port
- RequiredYes
- DescriptionDefault 5432
- Username
- RequiredYes
- DescriptionRead-only database user
- Password
- RequiredYes
- DescriptionStored encrypted
- Database
- RequiredYes
- DescriptionDatabase name
- Schema
- RequiredYes
- Descriptione.g. public
- Verify the server certificate
- RequiredNo
- DescriptionOn by default and recommended. Turn it off for a server with a self-signed certificate, one that does not name its host (such as Google Cloud SQL reached by IP address), or no TLS
SQL Server
SQL Server uses SQL authentication. Create a read-only login with CONNECT on the database and SELECT on the tables in the target schema. Azure SQL uses the same fields.
- Host
- RequiredYes
- DescriptionHostname or IP of your SQL Server instance
- Port
- RequiredYes
- DescriptionDefault 1433
- Username
- RequiredYes
- DescriptionRead-only SQL Server login
- Password
- RequiredYes
- DescriptionStored encrypted
- Database
- RequiredYes
- DescriptionDatabase name
- Schema
- RequiredYes
- Descriptione.g. dbo
- Encrypt Connection
- RequiredNo
- DescriptionOn by default
- Trust Server Certificate
- RequiredNo
- DescriptionOff by default
MySQL
Create a user that can only read the database. The form shows an example script.
- Host
- RequiredYes
- Descriptione.g. mydb.abc123.us-east-1.rds.amazonaws.com
- Port
- RequiredYes
- DescriptionDefault 3306
- Username
- RequiredYes
- DescriptionRead-only user
- Password
- RequiredYes
- DescriptionStored encrypted
- Database
- RequiredYes
- Descriptione.g. analytics
- Use TLS
- RequiredNo
- DescriptionOn by default; managed servers such as RDS, Cloud SQL and PlanetScale use it
- Verify the server certificate
- RequiredNo
- DescriptionOn by default and recommended. Needs the host name, not an IP address. Turn it off for a self-signed certificate, a server that signs with its own CA as Cloud SQL does, or a proxy or tunnel
Oracle Database
Oracle Database 12c or newer. Create a user that can only select from the tables you want to monitor. Give the database node's own address, not a SCAN address that redirects. Names are upper case unless they were created in quotes.
- Host
- RequiredYes
- Descriptione.g. db.example.com
- Port
- RequiredYes
- DescriptionDefault 1521
- Connect with
- RequiredYes
- DescriptionService name or SID. Use the service name unless your database is an old single-instance one that only has a SID
- Service name or SID
- RequiredYes
- Descriptione.g. ORCLPDB1
- Username
- RequiredYes
- Descriptione.g. LIGHTHOUSE_READER
- Password
- RequiredYes
- DescriptionStored encrypted
- Schema
- RequiredYes
- Descriptione.g. SALES
- Use TLS
- RequiredNo
- DescriptionOff by default. TCPS, usually port 2484
ClickHouse
Create a user that can only read the database. The form shows an example script.
- Host or URL
- RequiredYes
- Descriptione.g. abc123.us-east-1.aws.clickhouse.cloud
- Port
- RequiredYes
- DescriptionDefault 8443
- Use HTTPS
- RequiredNo
- DescriptionOn by default, for ClickHouse Cloud and port 8443
- Username
- RequiredYes
- DescriptionRead-only user
- Password
- RequiredYes
- DescriptionStored encrypted
- Database
- RequiredYes
- Descriptione.g. analytics
Query engines
Trino
Works with Trino clusters, including Starburst Galaxy. Connect as a user that can only read the catalog and schema you want to monitor.
- Host
- RequiredYes
- Descriptione.g. trino.example.com or my-cluster.galaxy.starburst.io
- Port
- RequiredYes
- DescriptionDefault 443
- Authentication
- RequiredYes
- DescriptionUsername and password, or JSON Web Token (JWT)
- Username / Password
- RequiredWith password auth
- DescriptionPassword is stored encrypted
- Token
- RequiredWith JWT auth
- DescriptionThe JWT. Username is optional and defaults to the token's user
- Catalog
- RequiredYes
- Descriptione.g. hive or iceberg
- Schema
- RequiredYes
- Descriptione.g. analytics
- Allow a self-signed certificate
- RequiredNo
- DescriptionOnly for a cluster whose certificate no public authority signed. The connection stays encrypted, but Lighthouse no longer checks that the server is yours
Amazon Athena
Use the access key of an IAM user that may only run Athena queries in the workgroup, read the Glue catalog and the tables' S3 data, and write to the query results location. Athena has no read-only mode Lighthouse can switch on, so that policy is the limit. Athena bills by the data each query scans: set a data limit per query on the workgroup to cap it.
- Region
- RequiredYes
- DescriptionAWS region code, e.g. us-east-1
- Workgroup
- RequiredYes
- Descriptione.g. primary
- Database
- RequiredYes
- DescriptionThe Glue database, e.g. analytics
- Query results location
- RequiredNo
- Descriptions3://bucket/prefix/. Empty uses the workgroup's location
- Access key ID
- RequiredYes
- DescriptionThe IAM user's access key
- Secret access key
- RequiredYes
- DescriptionStored encrypted
Analytics, BI, and business apps
These sources connect with an API key or token and read only what you pick in the form. Each picked item becomes a dataset.
Mixpanel
- Connection Method
- RequiredYes
- DescriptionAPI or MCP
- Project ID / Workspace ID
- RequiredYes
- DescriptionFrom your Mixpanel project settings
- Service Account Username / Secret
- RequiredYes
- DescriptionA Mixpanel service account. The secret is stored encrypted
- Insights
- RequiredYes
- DescriptionOne or more saved insights, picked from the project or added by their link. Each gets a unique name
Amplitude
- Data center
- RequiredYes
- DescriptionUnited States or European Union
- API key / Secret key
- RequiredYes
- DescriptionFrom Settings, Projects, your project. Stored encrypted
- Days to read
- RequiredYes
- DescriptionHow many days of history to read, up to 365
- Events
- RequiredYes
- DescriptionEvent names exactly as they appear in Amplitude, each measured as Event totals or Unique users. Each event becomes a table with one row per day
PostHog
- Region
- RequiredYes
- DescriptionUS Cloud, EU Cloud, or Self-hosted
- PostHog URL
- RequiredSelf-hosted only
- Descriptione.g. https://posthog.example.com
- Project ID
- RequiredYes
- DescriptionNumeric project ID
- Personal API key
- RequiredYes
- DescriptionA key with the query:read scope. Stored encrypted
- Queries
- RequiredYes
- DescriptionOne or more HogQL queries. Select the columns you need and add an ORDER BY so large results come back in a stable order
Google Analytics 4
Create a Google service account, download its JSON key, turn on the Google Analytics Data API in its Cloud project, and add the service account's email to the GA4 property as a Viewer.
- Property ID
- RequiredYes
- DescriptionThe numeric property ID, from Admin, Property details
- Days to read
- RequiredYes
- DescriptionHow many days of history to read, up to 365
- Metrics
- RequiredYes
- DescriptionGA4 Data API names such as activeUsers, sessions, or purchaseRevenue. Each becomes a table with one row per day
- Service account key (JSON)
- RequiredYes
- DescriptionStored encrypted
Looker
Lighthouse reads saved Looks through the Looker API. See Connect Looker for the step-by-step setup of the API user.
- Looker address
- RequiredYes
- Descriptione.g. https://acme.cloud.looker.com
- Client ID / Client secret
- RequiredYes
- DescriptionAPI credentials of a Looker user. The secret is stored encrypted
- Looks
- RequiredYes
- DescriptionPick the saved Looks to monitor
Tableau
- Tableau address
- RequiredYes
- Descriptione.g. https://prod-useast-a.online.tableau.com
- Site
- RequiredNo
- DescriptionThe part after /site/ in the address. Empty for the Default site
- Personal access token name
- RequiredYes
- DescriptionFrom My Account Settings in Tableau
- Token secret
- RequiredYes
- DescriptionShown once when the token is created. Stored encrypted
- Views
- RequiredYes
- DescriptionPick the sheets and dashboards to monitor, up to 50
Metabase
- Metabase address
- RequiredYes
- Descriptione.g. https://acme.metabaseapp.com
- API key
- RequiredYes
- DescriptionFrom Admin settings, Authentication, API keys. Stored encrypted
- Questions
- RequiredYes
- DescriptionPick saved questions or models. A question can return up to 100,000 rows and 10 MB; a larger one fails rather than giving a metric on part of its data
Grafana
- Grafana address
- RequiredYes
- Descriptione.g. https://acme.grafana.net
- Service account token
- RequiredYes
- DescriptionFrom Administration, Users and access, Service accounts. Stored encrypted
- Days to read
- RequiredYes
- DescriptionHow many days of history to read, up to 365
- Panels
- RequiredYes
- DescriptionPick dashboard panels. Lighthouse reads each panel's queries before transformations, with the dashboard's saved variable values
Stripe
In Stripe, open Developers, API keys and create a restricted key with Read access to Charges, Invoices, Subscriptions and Customers, and None for everything else. Secret keys are not accepted.
- Restricted key
- RequiredYes
- DescriptionStarts with rk_live_. Stored encrypted
- Days to read
- RequiredYes
- DescriptionCharges, invoices and customers created in this many days are read, up to 730. Every subscription is read
HubSpot
- Access token
- RequiredYes
- DescriptionFrom a HubSpot private app (Settings, Integrations, Private apps) with only the read scopes of the objects you pick. Stored encrypted
- Objects
- RequiredYes
- DescriptionDeals, Contacts, and Companies. Each becomes a table. Add custom properties by their internal names
Google Sheets
Create a Google service account, download its JSON key, and share the spreadsheet with the service account's email address as a Viewer.
- Spreadsheet URL or ID
- RequiredYes
- DescriptionThe spreadsheet's link or ID
- Sheets
- RequiredYes
- DescriptionOne or more sheet names, each with an optional range such as A1:F500
- Service account key (JSON)
- RequiredYes
- DescriptionStored encrypted
API Connector
Connects any REST API. You define a base URL, authentication (none, basic, or bearer token), a test request, and the request that fetches your data, with an optional JSONata expression that reshapes the response into rows. Unlike other sources, you run the test request yourself in the form, and it must pass before you can save.
Testing the connection
Every time you create or edit a data source, click Test Connection before saving. Lighthouse runs a live test against the source and blocks the save until it passes.
The test is also run again server-side on submit, so the server validates the connection before it creates the data source record.
Editing a data source
You can update credentials or connection settings at any time from Data Sources. The connection test runs again on save. If you pause or delete a data source, any associated datasets and metrics will also pause.
Security
All credentials are stored encrypted at rest. Lighthouse never copies or replicates your tables. It keeps schema metadata (table names, column names, types), the values of columns you filter on, and the results of your metric runs, including the columns your metric query returns. When you ask the AI assistant or a connected agent to look at your data, it can read up to 100 rows per request. Those rows are sent to the AI provider that handles the request and may be kept in our AI request logs, as described in the Privacy Policy.
For more on our security posture and compliance status, see the Trust Center.
Troubleshooting
If your connection test fails, see Troubleshooting for common credential and network errors.