Data Sources
Cloud Avenue Data Insights allows you to connect to your SQL databases and data warehouses to enable interactive data analysis through the Chat feature. Data sources are securely stored and can be reused across multiple chat sessions.
Overview
Data sources enable you to:
- Query Your Data: Run SQL queries and get insights from your databases through natural language
- Generate Charts: Create visualizations based on your data
- Build Data Tables: Execute queries and view results in interactive tables
- Refresh Artifacts: Update saved charts and tables with the latest data
Supported Databases
Cloud Avenue Data Insights supports the following database platforms:
- PostgreSQL: Industry-standard open-source relational database
- MySQL: Popular open-source relational database
- MariaDB: MySQL-compatible open-source database
- Microsoft SQL Server: Enterprise relational database management system
- Snowflake: Cloud data warehouse platform
- BigQuery: Google Cloud's fully-managed data warehouse
Managing Data Sources
Accessing Data Sources
To manage your data sources:
- Sign in to the Cloud Avenue Portal
- Navigate to Settings → Data Sources
- You'll see a list of all configured data sources
Adding a Data Source
To connect a new database:
- Click the "Add Source" button
-
Fill in the connection details:
- Name: A descriptive name for this connection (e.g., "Production Analytics DB")
- Dialect: Select your database type from the dropdown
- Host: Database server hostname or IP address
- Port: Database server port (default varies by database type)
- Database: Name of the database/schema to connect to
- Username: Database username
- Password: Database password (securely encrypted)
- Options (Optional): Additional connection parameters in JSON format
-
Click "Test Connection" to verify the configuration
- If the test succeeds, click "Save" to add the data source
Connection Security
All connections originate from Cloud Avenue's static outbound IP address. You can whitelist this IP in your database firewall for secure access. The static IP is displayed in the connection security information section when adding or editing a source.
Editing a Data Source
To modify an existing data source:
- Click the edit icon next to the data source name
- Update the connection details as needed
- Test the connection to ensure it still works
- Click "Save" to apply changes
Demo Data Source
The demo data source (e.g., "[Demo] Jaffle Shop") is provided for testing and cannot be edited. However, you can delete it if you no longer need it.
Deleting a Data Source
To remove a data source:
- Click the delete icon next to the data source name
- Confirm the deletion when prompted
Deletion Impact
Deleting a data source will not affect previously generated artifacts, but you won't be able to refresh them or create new queries against this connection.
Database-Specific Configuration
Each database type requires specific connection parameters. The UI form will guide you through the required fields based on your selected database dialect.
PostgreSQL
Required Fields:
- Host: Database server hostname or IP address (e.g.,
db.example.com) - Port: Database port (default:
5432) - Database: Database name to connect to
- Username: Database user account
- Password: User password (encrypted at rest)
Optional Parameters (via Options field):
connect_timeout: Connection timeout in secondssslmode: SSL mode (disable,require,verify-ca,verify-full)application_name: Application name for connection tracking
MySQL / MariaDB
Required Fields:
- Host: Database server hostname or IP address
- Port: Database port (default:
3306for MySQL,3306for MariaDB) - Database: Database name to connect to
- Username: Database user account
- Password: User password (encrypted at rest)
Optional Parameters (via Options field):
connect_timeout: Connection timeout in secondscharset: Character set (e.g.,utf8mb4)ssl_ca: Path to SSL certificate authority file
Microsoft SQL Server
Required Fields:
- Host: SQL Server hostname or IP address
- Port: Server port (default:
1433) - Database: Database name to connect to
- Username: SQL Server login username
- Password: Login password (encrypted at rest)
Optional Parameters (via Options field):
driver: ODBC driver name (default: auto-detected)encrypt: Whether to encrypt the connection (yesorno)TrustServerCertificate: Trust server certificate (yesorno)
Snowflake
Required Fields:
- Host: Snowflake account identifier (e.g.,
myorg-account123) - Database: Database name
- Username: Snowflake username
- Password: User password (encrypted at rest)
Additional Required Parameters (via Options field in JSON format):
{
"warehouse": "your_warehouse_name",
"schema": "your_schema_name"
}
Optional Parameters (via Options field):
{
"role": "your_role_name",
"arraysize": 10000
}
warehouse: Virtual warehouse to use for queriesschema: Default schema within the databaserole: Role to use for the sessionarraysize: Number of rows to fetch per batch
BigQuery
Required Fields:
- Host: Your GCP project ID (e.g.,
my-gcp-project) - Database: BigQuery dataset name
- Password: Service account JSON credentials (paste the entire JSON content)
The service account must have appropriate permissions:
bigquery.jobs.create: To run queriesbigquery.tables.getData: To read table databigquery.datasets.get: To access dataset metadata
Optional Parameters (via Options field in JSON format):
{
"location": "US"
}
location: Geographic location for query processing (e.g.,US,EU,asia-northeast1)
BigQuery Credentials
The Password field should contain the entire service account JSON file content. The credentials are encrypted before storage and never exposed in responses.
Connection Security
Static Outbound IP
All database connections from Cloud Avenue originate from a single static IP address. This allows you to configure your database firewall to accept connections only from this trusted IP.
The static outbound IP is displayed when adding or editing a data source. You can copy this IP and add it to your database's allowlist.
Encrypted Credentials
All sensitive information, including passwords and credentials, is encrypted at rest using industry-standard encryption. Credentials are never exposed in API responses or logs.
Network Security
For enhanced security, Cloud Avenue supports:
- SSL/TLS encrypted connections to your databases
- VPN tunnels for private network access (contact hello@cloudavenue.ai for advanced options)
- IP whitelisting for restricted access
Using Data Sources in Chat
Once you've configured a data source, you can use it in the Chat feature:
- Start or open a chat session
- Click the data source selector in the title bar
- Choose the database you want to query
- Ask questions or request analyses in natural language
The AI will generate SQL queries, execute them against your selected data source, and present results as tables, charts, or insights.
For more information on using data sources in chat, see the Chat documentation.
Troubleshooting
Connection Test Fails
If the connection test fails:
- Verify credentials: Double-check username, password, and database name
- Check network access: Ensure your database accepts connections from Cloud Avenue's static IP
- Confirm port accessibility: Verify the database port is open and accessible
- Review firewall rules: Check that no firewall is blocking the connection
- Test locally: Try connecting to the database from another client to isolate the issue
Slow Query Performance
If queries are running slowly:
- Optimize indexes: Ensure your database has appropriate indexes
- Reduce data volume: Consider filtering or aggregating data
- Check database load: Verify your database server has sufficient resources
- Review query complexity: Simplify complex queries when possible
Connection Timeout
If connections are timing out:
- Check network latency: High latency can cause timeouts
- Increase timeout settings: Contact support for timeout adjustments
- Verify database availability: Ensure the database server is running and responsive
Best Practices
- Use read-only accounts: Create database users with read-only permissions for Cloud Avenue
- Descriptive naming: Use clear, descriptive names for your data sources
- Test connections regularly: Periodically verify that saved connections still work
- Secure credentials: Never share database credentials in chat or documentation
- Monitor usage: Keep track of query patterns and performance
Support
For assistance with data sources:
- Email: support@cloudavenue.ai