diff --git a/docs/HOWTO.md b/docs/HOWTO.md index edd7c9833f..f611a864e4 100644 --- a/docs/HOWTO.md +++ b/docs/HOWTO.md @@ -416,7 +416,7 @@ And here we see the first three subsections `Project structure`, `Project setup` ![SQLMesh docs site 2nd level nav - Guides section](./readme/docs-site_2nd-level-nav_guides.png) -You may continue to add subsections as needed. At the time of writing, only the `Tobiko Cloud` section uses a 3rd level of nested sections. +You may continue to add subsections as needed. ### Theme and colors diff --git a/docs/cloud/cloud_index.md b/docs/cloud/cloud_index.md deleted file mode 100644 index aedd918a2c..0000000000 --- a/docs/cloud/cloud_index.md +++ /dev/null @@ -1,46 +0,0 @@ - -# Welcome to Tobiko Cloud - -[Tobiko Cloud](https://tobikodata.com/product.html) is a data transformation platform that enhances the ease and efficiency of managing data pipelines with SQLMesh. - -Tobiko Cloud is designed for companies who want to: - -- Host SQLMesh on a robust, reliable platform without building and maintaining it themselves -- Understand the status, activity, and performance of data pipelines at a glance -- Rapidly detect and debug problems with their pipelines -- Monitor cloud costs over time, by model (BigQuery and Snowflake engines only) - -![Tobiko Cloud](./cloud_index/tobiko-cloud.png) - -## How is Tobiko Cloud different from SQLMesh? - -Tobiko Cloud complements SQLMesh, supporting companies that need enterprise-level features like scalability, observability, and cost optimization. - -Here’s a comparison: - -1. **Deployment**: Tobiko Cloud simplifies SQLMesh deployment by hosting it on our infrastructure. - - It provides enterprise-grade hosting and scalability for complex data transformations, freeing teams from managing infrastructure themselves. - -2. **Observability and Insights**: Tobiko Cloud integrates deeply with SQLMesh, providing instant visibility into pipeline versions, code changes, and errors. - - This allows teams to monitor their pipelines, detect changes in pipeline behavior, and rapidly trace the root causes of data issues. - -4. **Efficiency**: SQLMesh's built-in features like virtual data environments and automatic change classification reduce computational costs and improve processing speeds. - - Tobiko Cloud's enhanced change classification identifies even more scenarios where code changes don't require rerunning downstream models. - -4. **Cost monitoring**: Tobiko Cloud automatically tracks costs per model execution for BigQuery and Snowflake. - - This allows teams to rapidly detect anomalous spending and to identify the models driving cloud costs. - -## Learn more - -Ready to unlock a faster, smarter, and more efficient way to manage your data pipelines? Book a call with the Tobiko Cloud team today! - -Discover how Tobiko's managed SQLMesh platform will empower your team to scale effortlessly, optimize costs, and deliver accurate data faster — all while freeing your team from infrastructure headaches. - -Whether you're a data engineer, or decision-maker, Tobiko Cloud gives you data transformation without the waste. Let's talk! - -
- diff --git a/docs/cloud/cloud_index/tobiko-cloud.png b/docs/cloud/cloud_index/tobiko-cloud.png deleted file mode 100644 index ed2ed69d95..0000000000 Binary files a/docs/cloud/cloud_index/tobiko-cloud.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications.md b/docs/cloud/features/alerts_notifications.md deleted file mode 100644 index f8c4d0e0fc..0000000000 --- a/docs/cloud/features/alerts_notifications.md +++ /dev/null @@ -1,119 +0,0 @@ -# Alerts - -Nobody likes learning about a data problem from stakeholders' angry messages about broken dashboards. If something goes wrong, you want to be the first to know! - -Tobiko Cloud makes sure you hear about problems first, alerting the right people immediately when a problem occurs. - -## Configuring Alerts - -Configure alerts in the Tobiko Cloud Settings section. - -To begin, navigate to Settings from the Home screen by clicking the `Settings` link in the top left navigation menu. - -![Image highlighting location of the Setting section link](./alerts_notifications/settings_section_link.png) - -In the Settings section, navigate to the Alerts page by clicking the `Alerts` link in the top left navigation menu. - -Then add a new alert by clicking the `Add Alert` button in the top right. - -![Image highlighting location of the Add Alert button](./alerts_notifications/add_alert_button.png) - -This opens the Add New Alert configuration page. - -Specify an informative name for the alert in the Name field, and click the drop downs for when you want this to run. This is a simple `event` alert, but we'll go into more options below. - -After you're finished configuring the new alert, save it by clicking the `Save` button in the bottom right. - -![Image showing the add Alert page](./alerts_notifications/add_alert_page.png) - -## Alerts - -Tobiko Cloud sends an alert based on a *trigger*. There are two types of triggers: [events](#event-triggers) and [measures](#measure-triggers). - -Events are tied to steps in the SQLMesh `plan` and `run` processes. For example, you could alert whenever a `plan` succeeded or a `run` failed. - -Choose whether the alert will be triggered by a Measure or Event in the alert's Trigger Type field. - -![Image showing the add Alert page trigger type field](./alerts_notifications/add_alert_trigger_type.png) - -### Event triggers - -Tobiko Cloud Alerts can be triggered by the following events: - -- Plan start -- Plan end -- Plan failure -- Run start -- Run end -- Run failure - -Specify an event trigger by first choosing whether it is tied to a `plan` or `run` Artifact. - -![Image showing the Artifact dropdown](./alerts_notifications/add_event_artifact.png) - -Next, choose the notification Event type: Start, Failure, or End. - -![Image showing the Event dropdown](./alerts_notifications/add_event_event.png) - -Finally, choose a Notification Target where the alert should be sent (described [below](#notification-targets)) and click the Save button in the bottom right. - -![Image showing the add event Alert page](./alerts_notifications/add_event_alert_page.png) - -### Measure triggers - -Tobiko Cloud Alerts can be triggered when a measure exceeds a threshold or meets a condition. - -To configure a measure alert, first build the condition that triggers the measure. Choose the measure of interest, the comparison operator, and a threshold value. - -![Image showing the add measure Alert page condition section](./alerts_notifications/add_measure_alert_condition.png) - -Now specify the alert Artifact field. - -Some measures, like run time, are most useful when accumulated over an entire `plan` or `run`. For example, you might want to alert whenever a `run`'s total run time is longer than four hours. - -Configure a cumulative measure alert by choosing an Artifact type of Plan or Run. - -Configure a non-cumulative measure alert by choosing an Artifact type of Measure. - -![Image showing the add measure Alert page Artifact field](./alerts_notifications/add_measure_alert_artifact.png) - -To prevent alert fatigue, you can limit measure-based alerts to a specific environment or model in the optional Environment and Model fields. - -![Image showing the add measure Alert page](./alerts_notifications/add_measure_alert_page.png) - -## Notification Targets - -Each alert is sent to one or more notification targets. - -A notification target is a way for alerts to contact you. A target can be used in multiple alerts, so you only have to configure them once. - -### Notification Target Configuration - -Configure Notification targets in the Tobiko Cloud Settings section. - -To add a new notification target, navigate to the Notification Targets page and click the Add Notification Target button in the top right. - -![Image highlighting location of the Add Notification Target button](./alerts_notifications/add_notification_target_button.png) - -Then enter a descriptive name for the new notification target, select its type (described [below](#notification-target-types)), fill in the configuration information, and click Save. - -![Image showing the add Notification Target page](./alerts_notifications/add_notification_target_page.png) - -### Notification target types - -Tobiko Cloud supports the following notification target types, which require you to provide different pieces of configuration information. - -- Slack API - - API Token - - Format: `xoxb-[13 digits]-[13 digits]-[24 alphanumeric characters]` - - Channel ID - - Format: `T[10 capital letter or numeric characters]` - - Example: T139Z25G8F4 -- Slack Webhook - - Webhook URL - - Format: Web URL - - Example: https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX -- PagerDuty - - Routing Key - - Format: `[32 alphanumeric characters]` - - Example: j16lxprdvoy21paigybthal0llk51kh5k diff --git a/docs/cloud/features/alerts_notifications/add_alert_button.png b/docs/cloud/features/alerts_notifications/add_alert_button.png deleted file mode 100644 index 14bd2700d9..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_alert_button.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_alert_page.png b/docs/cloud/features/alerts_notifications/add_alert_page.png deleted file mode 100644 index 8681adf5c5..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_alert_page.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_alert_trigger_type.png b/docs/cloud/features/alerts_notifications/add_alert_trigger_type.png deleted file mode 100644 index 1e29fe83c4..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_alert_trigger_type.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_event_alert_page.png b/docs/cloud/features/alerts_notifications/add_event_alert_page.png deleted file mode 100644 index 5521c5cc29..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_event_alert_page.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_event_artifact.png b/docs/cloud/features/alerts_notifications/add_event_artifact.png deleted file mode 100644 index 5aa55412f0..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_event_artifact.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_event_event.png b/docs/cloud/features/alerts_notifications/add_event_event.png deleted file mode 100644 index 5dbc5b2f83..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_event_event.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_measure_alert_artifact.png b/docs/cloud/features/alerts_notifications/add_measure_alert_artifact.png deleted file mode 100644 index 18bc08a03c..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_measure_alert_artifact.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_measure_alert_condition.png b/docs/cloud/features/alerts_notifications/add_measure_alert_condition.png deleted file mode 100644 index 647cf0ad96..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_measure_alert_condition.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_measure_alert_page.png b/docs/cloud/features/alerts_notifications/add_measure_alert_page.png deleted file mode 100644 index 21876f0d22..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_measure_alert_page.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_notification_target_button.png b/docs/cloud/features/alerts_notifications/add_notification_target_button.png deleted file mode 100644 index e823a89e32..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_notification_target_button.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/add_notification_target_page.png b/docs/cloud/features/alerts_notifications/add_notification_target_page.png deleted file mode 100644 index 42ec022c0f..0000000000 Binary files a/docs/cloud/features/alerts_notifications/add_notification_target_page.png and /dev/null differ diff --git a/docs/cloud/features/alerts_notifications/settings_section_link.png b/docs/cloud/features/alerts_notifications/settings_section_link.png deleted file mode 100644 index 5740bf566b..0000000000 Binary files a/docs/cloud/features/alerts_notifications/settings_section_link.png and /dev/null differ diff --git a/docs/cloud/features/costs_savings.md b/docs/cloud/features/costs_savings.md deleted file mode 100644 index a8e8b3c94e..0000000000 --- a/docs/cloud/features/costs_savings.md +++ /dev/null @@ -1,46 +0,0 @@ -# Data Warehouse Costs and Savings with Tobiko - -Understanding and managing data warehouse costs is challenging. Tobiko Cloud helps by tracking your data warehouse costs and integrating them into the Tobiko Cloud UI. - -Tobiko Cloud tracks data warehouse cost estimates per model for BigQuery and Snowflake projects. It also estimates how much money Tobiko Cloud has saved you by skipping unnecessary model reruns. - -## Supported Data Warehouse Pricing Plans - -Tobiko Cloud supports costs and savings data for these data warehouse pricing plans: - -- BigQuery On Demand -- Snowflake Credits - -## Data Warehouse Cost Configuration - -If you use a supported pricing plan, visit Settings to configure Tobiko Cloud's cost estimates. - -![Image highlighting location of the Settings link in the left site navigation](./costs_savings/costs-navigation.png) - -On the General settings page (1), select your pricing plan (2), enter your costs, and then save (3). - -![Annotated image showing locations of the general settings link, pricing plan form fields, and save button](./costs_savings/costs-steps.png) - -## Where to find cost and savings information - -Estimated costs and savings are displayed on the homepage, production environment page, runs and plans pages, and individual model pages. - -Cost information on each page will look similar to this: - -![Example of costs and savings data as seen on the Tobiko Cloud homepage](./costs_savings/costs-example.png) - -### Savings Categories - -When calculating your data warehouse costs, we also calculate how much you saved by using Tobiko! - -Tobiko Cloud comes with even more change categorization capabilities than open-source SQLMesh, such as advanced column-level impact analysis. - -Cost savings are broken up into three main categories: - -- **Prevented Reruns**: If SQLMesh already executed a change in one environment, we won't rerun it in another environment (backfills from development environments are reused when it is safe to do so). -- **Unaffected Downstream**: SQLMesh understands SQL, so we skip re-execution if a downstream model is not affected by an upstream change. -- **Virtual Environments**: With Virtual data environments, new environments can be created without running any computations at all. - -### Where to find cost savings information - -Cost savings are included in most places costs are displayed. Find how much you've saved using Tobiko by viewing the homepage, production environment page, or individual model pages. diff --git a/docs/cloud/features/costs_savings/costs-example.png b/docs/cloud/features/costs_savings/costs-example.png deleted file mode 100644 index 20dd443e0b..0000000000 Binary files a/docs/cloud/features/costs_savings/costs-example.png and /dev/null differ diff --git a/docs/cloud/features/costs_savings/costs-navigation.png b/docs/cloud/features/costs_savings/costs-navigation.png deleted file mode 100644 index 8978669c1c..0000000000 Binary files a/docs/cloud/features/costs_savings/costs-navigation.png and /dev/null differ diff --git a/docs/cloud/features/costs_savings/costs-steps.png b/docs/cloud/features/costs_savings/costs-steps.png deleted file mode 100644 index 037baf699d..0000000000 Binary files a/docs/cloud/features/costs_savings/costs-steps.png and /dev/null differ diff --git a/docs/cloud/features/data_catalog.md b/docs/cloud/features/data_catalog.md deleted file mode 100644 index 4e623b7518..0000000000 --- a/docs/cloud/features/data_catalog.md +++ /dev/null @@ -1,7 +0,0 @@ -# Data Catalog - -Tobiko Cloud serves a hosted version of your SQLMesh Data Catalog! - -Anyone with access to your Tobiko Cloud instance can use it to explore your production environment models at any time, without needing to run SQLMesh UI on their personal computer. - -![Tobiko Cloud's hosted Data Catalog](./data_catalog/data-catalog-model.png) diff --git a/docs/cloud/features/data_catalog/data-catalog-model.png b/docs/cloud/features/data_catalog/data-catalog-model.png deleted file mode 100644 index 9294aff0e9..0000000000 Binary files a/docs/cloud/features/data_catalog/data-catalog-model.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view.md b/docs/cloud/features/debugger_view.md deleted file mode 100644 index f2be89e256..0000000000 --- a/docs/cloud/features/debugger_view.md +++ /dev/null @@ -1,82 +0,0 @@ -# Debugger View - -
- -This view is used to help you debug production run issues with your SQLMesh models in Tobiko Cloud. - -Fixing data pipelines in production is a stressful, time-consuming process, so we're here to make it easier with a few visuals/clicks. - -> Note: the debugger view is only available for models that have been executed in your data warehouse via the `tcloud sqlmesh plan` or `tcloud sqlmesh run` commands. - -## Using the Debugger View - -Step 1: On the Tobiko Cloud home page, click any bar in the `Runs Daily` chart to open the debugger view. It doesn't matter whether the bar is green or red. - -![debugger_view_step_1](./debugger_view/debugger_view_step_1.png) - -

-Step 2: Click on the "Explore Executions" tab (bubble 1) to see specific execution details about the run, by model. - -Then choose a model to view. We clicked on the `orders` model (bubble 2) - notice that it shows you a focused view of the DAG (think: lineage) centered on whichever model you clicked. - -![debugger_view_step_2](./debugger_view/debugger_view_step_2.png) - -From here, you can explore the execution details of the run with a model's focused tabs (bubble 3). - -The rest of this page describes those tabs. - -> Pro tip: you can toggle whether timestamps are in UTC or your local timezone in the page's upper right corner. - -## Debugger View Tabs - -### Overview - -See a summary of the model's characteristics and behavior during current and historical runs. - -- You'll see a high-level overview of the model's characteristics, including the execution time, duration, completion status, and next scheduled run. -- View the past 5 run and plan activities to see the model's historical behavior. This is useful to get a pulse on how often it succeeds or fails. If you notice it's failing often, this is a good model to investigate further. -- Click on the "Previous Run" tile to explore the details of the previous run. This is useful if you want to compare the previous run to the current one if you notice duration is shorter or longer than expected. -- Click on the "Last Plan" tile to explore the details of the last plan that was applied. This is useful to see if the model's code was changed in a way that sped up or elongated the duration of the run. It's also helpful to verify if the schema changed in a way that might be causing an issue. - -![overview](./debugger_view/overview.png) - -### Impact - -See the current model's downstream and upstream models in a list format. - -This is useful if lots of models are in the DAG view and you want to see the model's full impact at a glance. - -![impact](./debugger_view/impact.png) - - -### Definition - -See the exact code that was executed during the run. - -This is useful if you want to determine whether the code changed in a way that might be causing an issue. - -![definition](./debugger_view/definition.png) - -### Schema - -See the current model's schema. - -This is useful to determine whether the schema changed in a way that might be causing an issue. - -![schema](./debugger_view/schema.png) - -### Intervals - -See the specific time intervals that were processed during the run. - -This is useful to see which exact time intervals succeeded or failed. Also, it's useful to determine whether time intervals changed in a way that might be causing an issue such as longer run duration. - -![intervals](./debugger_view/intervals.png) - -### Log - -See all the SQLMesh logs from the run. - -You can filter for multiple levels of logs: `info`, `warning`, `error`, etc. - -![log](./debugger_view/log.png) \ No newline at end of file diff --git a/docs/cloud/features/debugger_view/debugger_view_step_1.png b/docs/cloud/features/debugger_view/debugger_view_step_1.png deleted file mode 100644 index 275aecc5f3..0000000000 Binary files a/docs/cloud/features/debugger_view/debugger_view_step_1.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view/debugger_view_step_2.png b/docs/cloud/features/debugger_view/debugger_view_step_2.png deleted file mode 100644 index ce9a00f820..0000000000 Binary files a/docs/cloud/features/debugger_view/debugger_view_step_2.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view/definition.png b/docs/cloud/features/debugger_view/definition.png deleted file mode 100644 index fb78537147..0000000000 Binary files a/docs/cloud/features/debugger_view/definition.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view/impact.png b/docs/cloud/features/debugger_view/impact.png deleted file mode 100644 index 30d8f547f0..0000000000 Binary files a/docs/cloud/features/debugger_view/impact.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view/intervals.png b/docs/cloud/features/debugger_view/intervals.png deleted file mode 100644 index 1fd456d204..0000000000 Binary files a/docs/cloud/features/debugger_view/intervals.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view/log.png b/docs/cloud/features/debugger_view/log.png deleted file mode 100644 index 4fc1f12302..0000000000 Binary files a/docs/cloud/features/debugger_view/log.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view/overview.png b/docs/cloud/features/debugger_view/overview.png deleted file mode 100644 index 98967f7ad5..0000000000 Binary files a/docs/cloud/features/debugger_view/overview.png and /dev/null differ diff --git a/docs/cloud/features/debugger_view/schema.png b/docs/cloud/features/debugger_view/schema.png deleted file mode 100644 index 37745d12df..0000000000 Binary files a/docs/cloud/features/debugger_view/schema.png and /dev/null differ diff --git a/docs/cloud/features/incident_reporting.md b/docs/cloud/features/incident_reporting.md deleted file mode 100644 index 1ff062e06b..0000000000 --- a/docs/cloud/features/incident_reporting.md +++ /dev/null @@ -1,46 +0,0 @@ -# Incident Reporting - -We monitor Tobiko Cloud 24/7 to ensure your projects are running smoothly. - -If you encounter any issues, however, you can report incidents directly in Tobiko Cloud itself. - -This will notify our support team, who will investigate and resolve the issue as quickly as possible. - -### Reporting an incident - -Follow these steps to report an incident in Tobiko Cloud: - -1. Visit the [Tobiko Cloud Incident Reporting Page](https://incidents.tobikodata.com/) -2. Select one of the three severity levels for your incident -3. Enter the project name the incident is related to - * The project name is displayed after your organization name in the Cloud UI -4. Write a detailed description of the incident - * Include all relevant information that will help our support team understand and resolve the issue -5. Click the `Submit` button to send your incident report -6. You will receive a confirmation message indicating that your incident has been reported successfully -7. You will hear from our support team after submitting the incident report - -![Tobiko Cloud incident reporting page](./incident_reporting/incident_reporting.png) - -### Reporting an incident when SSO is unavailable - -Single Sign-On (SSO) is the default way to log in to Tobiko Cloud. However, SSO could be down or not working when you need to report an incident. - -Tobiko Cloud provides a standalone page that doesn't require SSO so you can report an incident when SSO is not working. The page is unique to your organization. - -The standalone URL is available in the incident reporting page when you log in with SSO. Because accessing the standalone URL does not require SSO, you should only share it with staff authorized to report incidents. - -To store your standalone incident reporting URL: - -1. Visit the [Tobiko Cloud Incident Reporting Page](https://incidents.tobikodata.com/) -2. Click the `Copy Standalone URL` button below the incident reporting section -3. Save this URL in an easily accessible location in case you need to report an incident when SSO is not working - -!!! note "Don't wait!" - We recommend copying this URL *right now* so your organization is protected from difficulty reporting an incident. - -### SSO not enabled for your organization - -SSO login is required for accessing the standalone incident reporting URL. - -SSO is enabled by default in Tobiko Cloud. If it is not enabled for your organization, contact your solution architect and ask them to provide you with a standalone incident reporting URL. diff --git a/docs/cloud/features/incident_reporting/incident_reporting.png b/docs/cloud/features/incident_reporting/incident_reporting.png deleted file mode 100644 index 542f1aa883..0000000000 Binary files a/docs/cloud/features/incident_reporting/incident_reporting.png and /dev/null differ diff --git a/docs/cloud/features/observability/development_environment.md b/docs/cloud/features/observability/development_environment.md deleted file mode 100644 index 2e8953f548..0000000000 --- a/docs/cloud/features/observability/development_environment.md +++ /dev/null @@ -1,75 +0,0 @@ -# Development Environment - -Tobiko Cloud extends the SQLMesh CLI to advance your development workflow. Instead of relying on a static terminal output isolated to your local machine when running `tcloud sqlmesh plan dev`, Tobiko Cloud tracks development history automatically displayed in a rich user interface. We want mental load at a minimum so you can focus on your most important work. - -At its core, this transforms development from a single-player to a multi-player experience. Instead of sharing screenshots and scrolling through terminal history, all you have to do now is share a link to your work. - -### When you might use this - -**Team Collaboration** - -The platform helps foster team collaboration by providing clear visibility into team activities. Developers can easily see who is working on specific models, prevent workflow conflicts, and avoid duplicate efforts. This creates a multiplayer development experience. - -**Performance Tracking** - -You can monitor changes over time, review recent activities including successes and failures, and gain detailed insights into specific plan execution outcomes to get a better sense of trends. Check out the example image of a development environment page with [multiple plan changes in a day.](#plan-history-image) - -**Simplified Communication and Team Alignment** - -Eliminate friction in sharing complex development context through manual pull requests or direct messages. These URLs serve as comprehensive summaries, displaying last run times, data intervals for incremental models, and detailed change information such as metadata modifications and model removals. - -![The feel and speed of sharing links in Tobiko Cloud](./development_environment/link_sharing_feel.gif) - - -## Using the Environments Tab -The Environments page shows an overview of all the environments that exist in your project (both yours and any your teammates have created). - -![tcloud environment page](./development_environment/environments.png) - -The page's table includes a link to each environment's page, along with the environment's creation date, the date it was last updated, and the date it will expire if not updated again. Clicking an environment's name from the main environments page takes you to its individual page. - -![tcloud development environment](./development_environment/tcloud_development_environment.png) - -## Individual Environment page -The page begins with an at-a-glance summary of the most recent plan applied to the environment. - -![tcloud environment page layout](./development_environment/tcloud_dev_env_labelled.png) - -1. Its completion status and time of the last plan applied -2. The latest time interval backfilled by the plan -3. Count of models present in the environment -4. An interactive visualization that summarizes the differences between the environment's models and the `prod` environment's models - - The count of directly modified models is represented in blue - - The count of added models is green - - The count of removed models is red - -??? "ProTip:" - - If a stakeholder or else anyone on your team is looking to understand an environment you own and are working on, you can share the link with them and they will be able to access and see all of the information about your environment. - - It's a great place to start to have open conversations about what was recently added, removed or changed in an environment! - - -## Differences from Prod section - -Development environments are used to prepare and test changes before deploying them to `prod`, with separate tabs for each type of change (directly modified, indirectly modified, metadata-only changes, added, removed). Below is a screenshot from an environment version that shows all these tab options. - - -![Prod Differences section with all options](./development_environment/dev_env_comprehensive.png) - -In the summary, each model's name is a link to [its model page](./model.md). This links to the information about the version of the model used in _this environment_ not the overall prod model. This means that you can get insight into what your working on in dev instead of the "stale" version in prod ("stale" relative to your work). - -## Plan history information - -The plan applications chart is a calendar visualization of all plans that have been applied to the environment in the previous 2 weeks. - -![Plan History Information](./development_environment/plan_history.png) - - -The chart represents days on its `x-axis` (each column is a day with the corresponding date across the top) and the time of day on its `y-axis` (each day begins at the top and ends at the bottom). - -Each day displays zero or more horizantal bars representing `plan` duration. If no `plans` occurred on a day, no bars will be displayed. If multiple `plans` occurred on the same day, their horizantal bars will be stacked. - -The chart uses color to convey the staus of a `plan` at a glance. Green is completed, grey is in progress, red is failed. - -Hovering over a bar reveals summary information about the `plan`, including its completion status, start time, end time, total duration, and change summary. The summary includes a link to [the `plan`'s page](./plan.md). \ No newline at end of file diff --git a/docs/cloud/features/observability/development_environment/dev_env_comprehensive.png b/docs/cloud/features/observability/development_environment/dev_env_comprehensive.png deleted file mode 100644 index c5db1527cb..0000000000 Binary files a/docs/cloud/features/observability/development_environment/dev_env_comprehensive.png and /dev/null differ diff --git a/docs/cloud/features/observability/development_environment/environments.png b/docs/cloud/features/observability/development_environment/environments.png deleted file mode 100644 index c0545c13ac..0000000000 Binary files a/docs/cloud/features/observability/development_environment/environments.png and /dev/null differ diff --git a/docs/cloud/features/observability/development_environment/link_sharing_feel.gif b/docs/cloud/features/observability/development_environment/link_sharing_feel.gif deleted file mode 100644 index 29e3a6cd41..0000000000 Binary files a/docs/cloud/features/observability/development_environment/link_sharing_feel.gif and /dev/null differ diff --git a/docs/cloud/features/observability/development_environment/plan_history.png b/docs/cloud/features/observability/development_environment/plan_history.png deleted file mode 100644 index d0116f3e2d..0000000000 Binary files a/docs/cloud/features/observability/development_environment/plan_history.png and /dev/null differ diff --git a/docs/cloud/features/observability/development_environment/tcloud_dev_env_labelled.png b/docs/cloud/features/observability/development_environment/tcloud_dev_env_labelled.png deleted file mode 100644 index 96fa02add2..0000000000 Binary files a/docs/cloud/features/observability/development_environment/tcloud_dev_env_labelled.png and /dev/null differ diff --git a/docs/cloud/features/observability/development_environment/tcloud_development_environment.png b/docs/cloud/features/observability/development_environment/tcloud_development_environment.png deleted file mode 100644 index b2c5a7969d..0000000000 Binary files a/docs/cloud/features/observability/development_environment/tcloud_development_environment.png and /dev/null differ diff --git a/docs/cloud/features/observability/measures_dashboards.md b/docs/cloud/features/observability/measures_dashboards.md deleted file mode 100644 index 6960c76b6d..0000000000 --- a/docs/cloud/features/observability/measures_dashboards.md +++ /dev/null @@ -1,7 +0,0 @@ -# Measures - -Coming Soon! - -# Dashboards - -Coming Soon! \ No newline at end of file diff --git a/docs/cloud/features/observability/model.md b/docs/cloud/features/observability/model.md deleted file mode 100644 index bd14d0c88b..0000000000 --- a/docs/cloud/features/observability/model.md +++ /dev/null @@ -1,62 +0,0 @@ -# Models - -The model overview page provides comprehensive observability features that let you explore detailed information about a model. This centralized view gives you quick access to critical metrics and performance data, providing a window into the model's health and status. - -Model owners typically use this page to monitor and check their models. It provides essential information in an easy-to-scan format, eliminating the need to debug issues through the command line interface. From this page you can quickly diagnose: - -1. Model anomalies - 1. Did the model suddenly take a really long time to run? - 2. Is the model repeatedly failing due to audits or schema evolution? -2. Downstream impacts - 1. If the model fails to run, lineage lets you immediately see what other models are affected -3. Which version introduced errors - 1. Use the model's version history to identify which changes caused a problem - - -## Navigate to a model - -There are a number of ways you can navigate to a model's page. This method shows you how to find your model directly from the Environments page. - -1. Select "Environments" from the left hand menu -2. Click the environment you want to explore from the list. - ![Tobiko Cloud environment page](./model/tcloud_environments.png) -3. Navigate to the Models section and click "Explore" to view available models - ![Tobiko Cloud environment page explore models link](./model/tcloud_environment_explore-models.png) -4. Browse through the model list and select a model to access its detailed information - ![Tobiko Cloud environment models list](./model/tcloud_model_list.png) - -## Model page information - -Each model page presents a comprehensive summary that includes the key components and metrics used to monitor model behavior. - -From here, you can identify anomalies in the model's run time based on historical run times and how they have been changing over time (or not!). - -You can also check other critical information, like the model's source code, its lineage relative to other models, its contents in previous versions, and even an approximation of how much it costs (if you have [cost savings set up](../costs_savings.md)). - -The following detailed information outlines the different sections: - -![Tobiko Cloud model status and metadata](./model/tcloud_model_status-metadata.png) - -- Current status graphs: Provide visual representations of model health through freshness indicators and detailed daily execution graphs - - Freshness indicator: Shows the current status of the model and the percentage of up-to-date models in production (as long as this is green, you have nothing to worry about in your production environment) - - Historical Freshness graph: Gives an at-a-glance picture of the history of the model's freshness. - - Green means it's up to date and has run smoothly for every interval - - Orange means that one interval is pending and will be processed on the next run - - Red means the model has more than one interval waiting to be processed because an interval was not processed during a previous run - - Daily executions: tells you the length of time it took the model to run on each day. This is a great place to quickly identify anomalies in the model's run time (both running too long *or* too short). -- Model details: Features tabs that display summary statistics, model source code, and interactive model lineage visualizations - -![Tobiko Cloud model version history](./model/tcloud_model_2.png) - -- Version history: Delivers a comprehensive chronological view of all model versions, with detailed information including: - - Precise timestamp of version promotion - - Clear indication of change impact (breaking or non-breaking modifications) - - Direct access to the complete implementation plan code -- Data Warehouse costs: estimates the cost of the model as set up by your team in [cost savings](../costs_savings.md) - -![Tobiko Cloud model version history](./model/tcloud_model_3.png) - -- Loaded intervals: these periods represent the time spans processed during each job execution, which generally consist of the time between one job and the next. These intervals are crucial for understanding the boundaries of data processing cycles, which may correspond to the start of anomalous model behavior. - - The table displays the specific model version in effect during that job execution, enabling precise tracking of version-specific outputs - - Helps track forward-only model changes by maintaining a clear chronological record of modifications, ensuring data consistency and preventing retroactive alterations -- Recent activity: Maintains a detailed log of version executions and comprehensive version audits \ No newline at end of file diff --git a/docs/cloud/features/observability/model/tcloud_environment_explore-models.png b/docs/cloud/features/observability/model/tcloud_environment_explore-models.png deleted file mode 100644 index e4c1991e90..0000000000 Binary files a/docs/cloud/features/observability/model/tcloud_environment_explore-models.png and /dev/null differ diff --git a/docs/cloud/features/observability/model/tcloud_environments.png b/docs/cloud/features/observability/model/tcloud_environments.png deleted file mode 100644 index 8233e39a09..0000000000 Binary files a/docs/cloud/features/observability/model/tcloud_environments.png and /dev/null differ diff --git a/docs/cloud/features/observability/model/tcloud_model_2.png b/docs/cloud/features/observability/model/tcloud_model_2.png deleted file mode 100644 index 32a7460979..0000000000 Binary files a/docs/cloud/features/observability/model/tcloud_model_2.png and /dev/null differ diff --git a/docs/cloud/features/observability/model/tcloud_model_3.png b/docs/cloud/features/observability/model/tcloud_model_3.png deleted file mode 100644 index 8fea306556..0000000000 Binary files a/docs/cloud/features/observability/model/tcloud_model_3.png and /dev/null differ diff --git a/docs/cloud/features/observability/model/tcloud_model_list.png b/docs/cloud/features/observability/model/tcloud_model_list.png deleted file mode 100644 index 8ac377a4d9..0000000000 Binary files a/docs/cloud/features/observability/model/tcloud_model_list.png and /dev/null differ diff --git a/docs/cloud/features/observability/model/tcloud_model_status-metadata.png b/docs/cloud/features/observability/model/tcloud_model_status-metadata.png deleted file mode 100644 index b7cc1d86ed..0000000000 Binary files a/docs/cloud/features/observability/model/tcloud_model_status-metadata.png and /dev/null differ diff --git a/docs/cloud/features/observability/model_freshness.md b/docs/cloud/features/observability/model_freshness.md deleted file mode 100644 index 67389f8b6c..0000000000 --- a/docs/cloud/features/observability/model_freshness.md +++ /dev/null @@ -1,52 +0,0 @@ -# Model Freshness - -Model freshness indicators on the homepage allow you to immediately determine whether the production environment is correct and up to date. - -Additional information on the page, such as lists of models and their current status, helps you investigate any freshness issues, identify problematic models, and check if CI/CD processes have stopped running. - -![tcloud model freshness](./model_freshness/find_model_freshness.png) - -## When you might use this - -The model freshness chart answers the question "how is the production environment right now?" It summarizes the recent history of production models and whether they were backfilled on time. - -When the chart is all green, everything is running smoothly and you're good to go! - -Red indicators in the past don't require immediate action, but they may provide lessons that can help prevent similar issues in the future. - -Red indicators now mean it's time to take action and debug the issue. - -## Finding the model freshness chart - -The model freshness chart is near the top of the Tobiko Cloud homepage. - -![tcloud model freshness](./model_freshness/find_model_freshness.png) - - -## Model freshness indicators - -Model freshness is the timeliness of the data most recently processed by a model. In other words, it measures how up-to-date each model is relative to its `cron`. - -The chart displays historical data, showing the percentage of models that were fresh (y-axis) across time (x-axis). - -This historical view helps when troubleshooting data issues — you can quickly check if the issue is associated with delayed model runs. - -![tcloud model freshness](./model_freshness/tcloud_model_freshness.png) - -The chart uses color to show the percentage of models in different states: - -1. Models that have run for all previous cron periods are "complete" (green). - - All green indicates the data warehouse is fully up-to-date -2. Models that haven't run for the most recent cron period are "pending" (yellow). -3. Models that haven't run for multiple previous cron periods are "behind" (red). - - Red signals potential issues that need investigation - -Keep in mind that if a model shows red (behind) in the past, that doesn't necessarily reflect its current status. It may have caught up by now! - -The chart is interactive — hovering reveals the distribution of model freshness at a specific time point. - -![Tobiko Cloud model freshness chart tooltip](./model_freshness/tcloud_model-freshness_tooltip.png) - -Click a time point to open a list of the models that were complete, pending, or behind at that time. - -![Tobiko Cloud model freshness list](./model_freshness/tcloud_model_freshness_list.png) diff --git a/docs/cloud/features/observability/model_freshness/find_model_freshness.png b/docs/cloud/features/observability/model_freshness/find_model_freshness.png deleted file mode 100644 index d5c9ca8763..0000000000 Binary files a/docs/cloud/features/observability/model_freshness/find_model_freshness.png and /dev/null differ diff --git a/docs/cloud/features/observability/model_freshness/tcloud_model-freshness_tooltip.png b/docs/cloud/features/observability/model_freshness/tcloud_model-freshness_tooltip.png deleted file mode 100644 index c4072e97b8..0000000000 Binary files a/docs/cloud/features/observability/model_freshness/tcloud_model-freshness_tooltip.png and /dev/null differ diff --git a/docs/cloud/features/observability/model_freshness/tcloud_model_freshness.png b/docs/cloud/features/observability/model_freshness/tcloud_model_freshness.png deleted file mode 100644 index a7d8c00983..0000000000 Binary files a/docs/cloud/features/observability/model_freshness/tcloud_model_freshness.png and /dev/null differ diff --git a/docs/cloud/features/observability/model_freshness/tcloud_model_freshness_list.png b/docs/cloud/features/observability/model_freshness/tcloud_model_freshness_list.png deleted file mode 100644 index 794c8d2d57..0000000000 Binary files a/docs/cloud/features/observability/model_freshness/tcloud_model_freshness_list.png and /dev/null differ diff --git a/docs/cloud/features/observability/overview.md b/docs/cloud/features/observability/overview.md deleted file mode 100644 index fefcc52cbc..0000000000 --- a/docs/cloud/features/observability/overview.md +++ /dev/null @@ -1,49 +0,0 @@ -# Overview - -Fixing problems with data pipelines is challenging because there are so many potential causes. - -For transformation pipelines, those range from upstream source timeouts to SQL query errors to Python library conflicts (and more!). - -![Data Ops Observability](./overview/data-ops-light.png) - -Tobiko Cloud makes it easy to detect and respond to changes in your pipelines: - -- Did a problem occur? - - **Alerts notify you immediately.** -- When did the problem occur? - - **Historical pipeline information reveals the moment.** -- Where is the problem coming from? - - **Easy navigation through pipeline components lets you pinpoint the source.** -- What is causing the problem? - - **Centralized logs and errors have all the details.** - -## How it works - -Tobiko Cloud captures detailed metadata throughout your data project's lifecycle. - -During the execution of plans and runs, it collects information about model performance and system health to give you complete visibility into your system's operations. - -This information allows you to: - -- Monitor the health and performance of your data pipelines -- Track the status of current and historical runs -- Review a detailed version history of your models and transformations -- Creation of custom visualizations and metrics -- Troubleshoot problems and optimize inefficient operations - -Observability features are seamlessly integrated into Tobiko Cloud, making it simple to monitor and understand your project's behavior. For example, on the Tobiko Cloud Homepage, there is run history, plan executions, and freshness displayed for the production environment: - -![Observability on the Homepage](./overview/observability_section_home.png) - -Instead of digging through complex logs or piecing together information from multiple sources, you can quickly access the relevant information from any part of your project. - - \ No newline at end of file diff --git a/docs/cloud/features/observability/overview/data-ops-light.png b/docs/cloud/features/observability/overview/data-ops-light.png deleted file mode 100644 index 08a6988245..0000000000 Binary files a/docs/cloud/features/observability/overview/data-ops-light.png and /dev/null differ diff --git a/docs/cloud/features/observability/overview/observability_section_home.png b/docs/cloud/features/observability/overview/observability_section_home.png deleted file mode 100644 index 815c971074..0000000000 Binary files a/docs/cloud/features/observability/overview/observability_section_home.png and /dev/null differ diff --git a/docs/cloud/features/observability/plan.md b/docs/cloud/features/observability/plan.md deleted file mode 100644 index 5c8d748c9a..0000000000 --- a/docs/cloud/features/observability/plan.md +++ /dev/null @@ -1,91 +0,0 @@ -# Plans - -Plan pages provide comprehensive, detailed insights into each plan executed across your SQLMesh environments. These pages act as a central hub where team members can monitor and understand all aspects of plan execution, from start to finish. - -In open-source SQLMesh, information about plans is stored locally by default, so team members only have immediate visibility into the plans they have executed themselves. - -To address this limitation, we've created a comprehensive plan page that serves two essential purposes: - -1. Provide a centralized place where every team member can view, track, and understand all plans and their current status. - - Benefit: increase transparency and improve collaboration across the team -2. Maintains detailed historical records, providing a reference of all a projects' changes, when each change was implemented, and how your project has evolved over time. - - Benefit: ensure nothing gets lost or forgotten as teams evolve over time - -![tcloud plan](./plan/plan.png) - -## When you might use this - -**Team Collaboration** - -Improves team collaboration through an easy-to-understand view of everyone's changes, so the entire team can see the latest updates made to an environment. - -**Monitoring** - -Tells you exactly what's happening by monitoring plan execution status. Instantly identify plans that are currently running, have completed successfully, or have encountered any issues that need attention. - -If you do encounter any issues, this page serves as an ideal starting point for debugging: - -- You no longer need to spend time searching through log files trying to locate specific model changes or modifications you've made - everything is organized and easily accessible -- We've carefully curated a log that captures everything that occurred during the plan execution. This provides a consolidated location where you can examine any plan or model and access its relevant logs, eliminating the need to parse CLI output to find what you're interested in - 1. For storage optimization, logs are retained for one week before being automatically cleaned up from the system -- Share monitoring information with teammates via links to plan pages, not screenshots of terminal output - -**Change clarification** - -Delivers a visualization of a plan's model changes, making it simple to share sets of modifications with team members who do not have direct access to the local development environment. - -Summary information at the top of the page provides context and assistance in understanding what might have gone wrong, making troubleshooting more efficient and systematic. - -- For example, share changes with teammates without opening a pull request (which could trigger an unwanted CI/CD pipeline) - -## Navigating to a Plan page -Every SQLMesh `plan` is applied to a specific environment. To locate a `plan`, first navigate to its [Environment page](./development_environment.md). - -The environment page's Recent Activity table includes a list of every recent `plan` and `run`. To visit a `plan`'s page, locate the `plan` by application date and click on its blue ID link in the table's final column. - -![tcloud plan information](./plan/plan_info.png) - -Clicking the link opens the detailed plan page: - -![tcloud plan](./plan/plan.png) - -## Plan summary - -The top section provides an at-a-glance overview of the plan, including: - -![tcloud plan](./plan/plan_top_section.png) - -- `Status`: the plan's completion status (possible values: complete, in progress, failed) -- `When`: the times when the plan started and completed -- `Plan Type`: the plan's type classification. Possible values: - - `Environment update`: the plan includes a modified model - - `Restatement`: the plan included a restated model - - `System`: the Tobiko Cloud team has made a upgrade to your system (no models or data were affected) -- `Backfill Dates`: dates for which the model was backfilled -- `Changes`: chart displaying counts of model change types (directly modified model count in blue, added models in green, removed models in red) - -## Plan changes - -The middle section presents a detailed summary of all plan changes. - -![plan example](./plan/plan_changes.png) - -Each change category has its own tab on the left side: `added` models, `directly modified` models, `metadata-only modified` models, `indirectly modified` models, and `removed` models. - -Clicking a model name takes you to its [individual model page](./model.md). - - -## Updates and Executions section - -The final section displays the different actions SQLMesh took when executing the plan, where each type of action has its own tab across the top: - -- `Physical Layer Updates` (creating physical tables) -- `Model Executions` (executing model queries) -- `Audits` (running model audits) -- `Virtual Updates` (updating environment views) - -![tcloud plan audits section](./plan/plan_tabs.png) - -The number of models in each category is included in the tab title. - -Each tab contains a table with detailed information on and links to the model(s) that have been updated. diff --git a/docs/cloud/features/observability/plan/plan.png b/docs/cloud/features/observability/plan/plan.png deleted file mode 100644 index 66996ac56a..0000000000 Binary files a/docs/cloud/features/observability/plan/plan.png and /dev/null differ diff --git a/docs/cloud/features/observability/plan/plan_changes.png b/docs/cloud/features/observability/plan/plan_changes.png deleted file mode 100644 index 054b8437a6..0000000000 Binary files a/docs/cloud/features/observability/plan/plan_changes.png and /dev/null differ diff --git a/docs/cloud/features/observability/plan/plan_info.png b/docs/cloud/features/observability/plan/plan_info.png deleted file mode 100644 index 96e301d5cd..0000000000 Binary files a/docs/cloud/features/observability/plan/plan_info.png and /dev/null differ diff --git a/docs/cloud/features/observability/plan/plan_tabs.png b/docs/cloud/features/observability/plan/plan_tabs.png deleted file mode 100644 index d8848c591c..0000000000 Binary files a/docs/cloud/features/observability/plan/plan_tabs.png and /dev/null differ diff --git a/docs/cloud/features/observability/plan/plan_top_section.png b/docs/cloud/features/observability/plan/plan_top_section.png deleted file mode 100644 index 1376a06bcd..0000000000 Binary files a/docs/cloud/features/observability/plan/plan_top_section.png and /dev/null differ diff --git a/docs/cloud/features/observability/prod_environment.md b/docs/cloud/features/observability/prod_environment.md deleted file mode 100644 index 71fc97ddaf..0000000000 --- a/docs/cloud/features/observability/prod_environment.md +++ /dev/null @@ -1,86 +0,0 @@ -# Prod Environment - -A data transformation system's most important component is the production environment, which provides the data your business runs on. - -When you first log in to Tobiko Cloud, you'll see the production environment page. This page shows you at a glance if your data systems are working properly. - -It helps data teams quickly check their work without having to dig through complicated logs - just look at the visual dashboard, and you'll know if everything is running smoothly. - -![tcloud prod env](./prod_environment/tcloud_prod_environment.png) - -## When you might use this - -**After a production update** - -The dashboard helps you check if your recent updates to production are working correctly. It uses a simple color system to show you what's happening: green means everything is good, and red shows where there might be problems. - -If you see red in your current run, plan or freshness, it means there's a problem that needs your attention. Don't worry about red marks from the past (in the historical and previous runs/plans) - these are old issues that have already been fixed. - -Best part? You can check all of this in about 5-10 seconds. - -**Quick cost check** - -The homepage also displays cost metrics for your production environment, a feature exclusive to production (not available in development environments). This allows you to quickly understand and monitor your team's model execution costs without diving into detailed reports. - -## Observing production - -Tobiko Cloud makes it easy to understand your production environment, embedding four observability features directly on your project's homepage: - -1. [Model Freshness chart](./model_freshness.md) -2. Runs and plans chart -3. Recent activity table -4. Warehouse costs overview - -![tcloud prod env](./prod_environment/tcloud_prod_environment_labelled.png) - -!!! Note - - Model freshness has its own feature page - learn more [here](./model_freshness.md)! - -### Runs and Plans Chart - -SQLMesh performs two primary actions: running the project's models on a cadence and applying plans to update the project's content/behavior. - -The Runs and Plans Chart displays a summary of all `run`s and `plans` that occurred over the previous two weeks. It shows when they occurred and how long they took to execute. - -![tcloud weekly runs](./prod_environment/weekly_runs.png) - -The chart uses color to convey `run` status at a glance: bars representing `run`s that successfully completed are marked in green, failed `run`s are red, and `run`s currently in progress are gray. `plan`s are always displayed in purple. - -The chart represents time on its `x-axis`, where each entry represents one day. The date corresponding to each day is displayed at the top of the chart. - -Each day displays zero or more vertical bars representing `run` duration. If no `run`s occurred on a day, no vertical bars will be displayed. If multiple `run`s occurred on the same day, their vertical bars will be stacked. - -The chart's `y-axis` represents `run` duration. The height of each `run`'s bar corresponds to its duration, allowing you to quickly assess execution times. - -For example, consider the leftmost entry in the figure above: - -- The label at the top of the chart shows that it represents November 26 -- The entry consists of a single green bar, which tells us that one successful `run` occurred -- The bottom of the bar begins at 0 seconds on the `y-axis`, and the top of the bar ends at 20 seconds, telling us the `run` took 20 seconds to execute - -In contrast, consider the rightmost entry in the figure above: - -- The label at the top of the chart shows that it represents December 9 -- The entry contains two green bars, which tells us that two successful `run`s occurred -- The lower bar begins at 0 seconds on the `y-axis` and reaches up to 13 seconds, telling us the `run` took 13 seconds to execute -- The upper bar begins at 13 seconds on the `y-axis` and reaches up to 22 seconds, telling us that the `run` took 22 - 13 = 9 seconds to execute - -Learn more about a `run` or `plan` by hovering over its bar, which displays a link to its page, its start and end times, and its duration. - -### Recent Activity Table - -The recent activity table provides comprehensive information about recent project activities, displaying both `run`s and `plan`s in chronological order. This provides a more granular view than the runs and plans chart. - -For each activity entry, you can view its completion status, estimated cost of execution (BigQuery and Snowflake engines only), total duration from start to finish, start and completion times, and a unique identification hash for reference purposes. - -![tcloud recent activity](./prod_environment/recent_activity.png) - -The table provides the ability to filter which rows are displayed by typing into the text box in the top right. This helps you locate specific information within the activity log, making it easier to find and analyze particular events or patterns in your system's operational history. - -### Warehouse Costs Overview -Managing data warehouse costs can be complex. Tobiko Cloud simplifies this by monitoring costs directly. For BigQuery and Snowflake projects, it tracks cost estimates per model and calculates savings from avoided model reruns. - -The costs and savings summary information and chart display the costs to run and host all the models in your production environment over the last 30 days. This provides a great way to quickly see increases and decreases in daily running costs. To learn more, [check out the cost savings docs](../costs_savings.md). - -![tcloud recent activity](./prod_environment/costs.png) \ No newline at end of file diff --git a/docs/cloud/features/observability/prod_environment/costs.png b/docs/cloud/features/observability/prod_environment/costs.png deleted file mode 100644 index 469d802ad5..0000000000 Binary files a/docs/cloud/features/observability/prod_environment/costs.png and /dev/null differ diff --git a/docs/cloud/features/observability/prod_environment/recent_activity.png b/docs/cloud/features/observability/prod_environment/recent_activity.png deleted file mode 100644 index 727bfe21f5..0000000000 Binary files a/docs/cloud/features/observability/prod_environment/recent_activity.png and /dev/null differ diff --git a/docs/cloud/features/observability/prod_environment/tcloud_prod_environment.png b/docs/cloud/features/observability/prod_environment/tcloud_prod_environment.png deleted file mode 100644 index f1f6104f86..0000000000 Binary files a/docs/cloud/features/observability/prod_environment/tcloud_prod_environment.png and /dev/null differ diff --git a/docs/cloud/features/observability/prod_environment/tcloud_prod_environment_labelled.png b/docs/cloud/features/observability/prod_environment/tcloud_prod_environment_labelled.png deleted file mode 100644 index ca52c49f0e..0000000000 Binary files a/docs/cloud/features/observability/prod_environment/tcloud_prod_environment_labelled.png and /dev/null differ diff --git a/docs/cloud/features/observability/prod_environment/weekly_runs.png b/docs/cloud/features/observability/prod_environment/weekly_runs.png deleted file mode 100644 index 46056888da..0000000000 Binary files a/docs/cloud/features/observability/prod_environment/weekly_runs.png and /dev/null differ diff --git a/docs/cloud/features/observability/run.md b/docs/cloud/features/observability/run.md deleted file mode 100644 index 406a9d90a9..0000000000 --- a/docs/cloud/features/observability/run.md +++ /dev/null @@ -1,55 +0,0 @@ -# Runs - -Run pages, like [plan pages](./plan.md), serve as centralized information sources that provide detailed insights into individual runs executed across your various environments. - -They were created with the same philosophy as the plan pages, providing a consistent user experience and navigation pattern. - -These pages act as a central hub where team members can monitor and understand all aspects of a run’s execution, from start to finish. Additionally, they can serve as a jumping off point for investigating run-related errors or unexpected behavior. - -![tcloud run](./run/tcloud_run.png) - -## When you might use this - -If you're monitoring data pipelines, a common activity is verifying the status of the most recent run. - -The run page provides a quick way to check whether a run has succeeded or failed and when exactly it was executed. The page includes a comprehensive view of all model executions and audits that were included in the run. - -If you need deeper insights, the [Debugger View](../debugger_view.md) offers advanced analysis capabilities. This powerful tool allows teams to investigate which models are taking the longest time to update, helping identify potential performance bottlenecks in their data pipelines. - -## Navigating to a Run page - -Every SQLMesh `run` is applied to a specific environment. To locate a `run`, first navigate to its [Environment page](./development_environment.md). - -The environment page's Recent Activity table includes a list of every recent `plan` and `run`. To learn more about a `run`, locate the `run` by application date and click on its blue ID link in the table's final column. - -![tcloud run information](./run/run_info.png) - -Clicking the link opens the detailed run overview page: - -![tcloud run](./run/tcloud_run.png) - -## Summary - -The top of the overview page summarizes the `run`, including: - - 1. `Status`: completion status (completed, in progress, or failed) - 2. `When`: start and end times - 3. `Changes since previous run`: list of project changes that occurred since the previous `run` - -![tcloud run](./run/tcloud_run_summary.png) - -## Details - -The lower portion of the page contains a table with three tabs. - -`Model Executions`: list of executed models, including completion status, run times, error messages (when applicable), and links to detailed execution logs for troubleshooting - -![tcloud run model executions](./run/run_model_executions.png) - -`Audits`: list of audit executions statuses, including completion status, whether the audit is blocking, and links to detailed audit logs for verification - -![tcloud run model executions](./run/run_audits.png) - -`Explore Executions`: interactive view of executed models, including a lineage graph of model dependencies, and detailed information about impact analysis, model definitions, time intervals processed, and links to associated logs (learn more on the [Debugger View page](../debugger_view.md)) - -![tcloud run model executions](./run/run_explore_executions.png) \ No newline at end of file diff --git a/docs/cloud/features/observability/run/run_audits.png b/docs/cloud/features/observability/run/run_audits.png deleted file mode 100644 index da9d9fe66a..0000000000 Binary files a/docs/cloud/features/observability/run/run_audits.png and /dev/null differ diff --git a/docs/cloud/features/observability/run/run_explore_executions.png b/docs/cloud/features/observability/run/run_explore_executions.png deleted file mode 100644 index 8fb36a6362..0000000000 Binary files a/docs/cloud/features/observability/run/run_explore_executions.png and /dev/null differ diff --git a/docs/cloud/features/observability/run/run_info.png b/docs/cloud/features/observability/run/run_info.png deleted file mode 100644 index 674a7075bb..0000000000 Binary files a/docs/cloud/features/observability/run/run_info.png and /dev/null differ diff --git a/docs/cloud/features/observability/run/run_model_executions.png b/docs/cloud/features/observability/run/run_model_executions.png deleted file mode 100644 index 0989cda5f3..0000000000 Binary files a/docs/cloud/features/observability/run/run_model_executions.png and /dev/null differ diff --git a/docs/cloud/features/observability/run/tcloud_run.png b/docs/cloud/features/observability/run/tcloud_run.png deleted file mode 100644 index 79a045f68c..0000000000 Binary files a/docs/cloud/features/observability/run/tcloud_run.png and /dev/null differ diff --git a/docs/cloud/features/observability/run/tcloud_run_summary.png b/docs/cloud/features/observability/run/tcloud_run_summary.png deleted file mode 100644 index dc2a931fd5..0000000000 Binary files a/docs/cloud/features/observability/run/tcloud_run_summary.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow.md b/docs/cloud/features/scheduler/airflow.md deleted file mode 100644 index 653d3ca474..0000000000 --- a/docs/cloud/features/scheduler/airflow.md +++ /dev/null @@ -1,244 +0,0 @@ -# Airflow - -Tobiko Cloud's Airflow integration allows you to combine Airflow system monitoring with the powerful debugging tools in Tobiko Cloud. - -
- -## How it works - -Tobiko Cloud uses a custom approach to Airflow integration. - -The Airflow DAG task mirrors the progress of the Tobiko Cloud scheduler run. Each local task reflects the outcome of its corresponding remote task. - -This allows you to observe at a glance how your data pipeline is progressing, displayed alongside your other pipelines in Airflow. No need to context switch to Tobiko Cloud! - -### Why a custom approach? - -Tobiko Cloud's scheduler performs multiple optimizations to ensure that your pipelines run correctly and efficiently. Those optimizations are only possible within our SQLMesh-aware scheduler. - -Our approach allows you to benefit from those optimizations while retaining the flexibility to attach extra tasks or logic to the DAG in your broader pipeline orchestration context. - -Because `run`s are still triggered by the Tobiko Cloud scheduler and tasks in the local DAG just reflect their remote equivalent in Tobiko Cloud, we call our custom approach a *facade*. - -## Setup - -Your SQLMesh project must be configured and connected to Tobiko Cloud before using the Airflow integration. - -Learn more about connecting to Tobiko Cloud in the [Getting Started page](../../tcloud_getting_started.md). - -### Install libraries - -After connecting your project to Tobiko Cloud, you're ready to set up the Airflow integration. - -Start by installing the `tobiko-cloud-scheduler-facade` library in your Airflow runtime environment. - -Make sure to include the `[airflow]` extra in the installation command: - -``` bash -pip install tobiko-cloud-scheduler-facade[airflow] -``` - -!!! info "Mac Users" - - On Mac OS, you may get the following error: - - `zsh: no matches found: tobiko-cloud-scheduler-facade[airflow]` - - In which case, the argument to `pip install` needs to be quoted like so: - - ``` - $ pip install 'tobiko-cloud-scheduler-facade[airflow]' - ``` - -### Connect Airflow to Tobiko Cloud - -First, provision an OAuth Client for Airflow to use by following the guide on how to [provision client credentials](../security/single_sign_on.md#provisioning-client-credentials). - -After provisioning the credentials, you can obtain the `Client ID` and `Client Secret` values for Airflow to use to connect to Tobiko Cloud. - -Next, add an Airflow [connection](https://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html#creating-a-connection-with-the-ui) containing your Tobiko Cloud credentials. - -Specify these fields when adding the connection: - -- **Connection ID**: connection name of your choice - - May not contain spaces, single quotes `'`, or double quotes `"` -- **Connection Type**: always HTTP -- **Host**: URL for your Tobiko Cloud project -- **Login**: OAuth `Client ID` for Airflow -- **Password**: OAuth `Client Secret` for Airflow - -It is convenient to specify the connection in the Airflow UI, as in this example with the name `tobiko_cloud`: - -![Add a connection in the Airflow UI](./airflow/add_connection.png) - -If the connection is successful, it will appear in the connection list: - -![List of connections in the Airflow UI](./airflow/connection_list.png) - -!!! info "Remember the connection name!" - - Name the connection whatever you like, but remember that name because it's used for the `conn_id` parameter below. - -## Create a DAG - -You are now ready to create an Airflow DAG that connects to Tobiko Cloud. - -This example code demonstrates the creation process, which requires: - -- Importing the `SQLMeshEnterpriseAirflow` operator -- Creating a `SQLMeshEnterpriseAirflow` instance with your Airflow connection id (the name from [above](#connect-airflow-to-tobiko-cloud!)) -- Creating the DAG object with the `create_cadence_dag()` method - - -```python linenums="1" -# folder: dags/ -# file name: tobiko_cloud_airflow_integration.py - -# Import SQLMeshEnterpriseAirflow operator -from tobikodata.scheduler_facades.airflow import SQLMeshEnterpriseAirflow - -# Create SQLMeshEnterpriseAirflow instance with connection ID -tobiko_cloud = SQLMeshEnterpriseAirflow(conn_id="tobiko_cloud") - -# Create DAG for `prod` environment from SQLMeshEnterpriseAirflow instance -first_task, last_task, dag = tobiko_cloud.create_cadence_dag(environment="prod") -``` - -This is all that's needed to integrate with Tobiko Cloud! - -## Monitor Tobiko Cloud actions - -Once your DAG is loaded by Airflow, it will be populated with the SQLMesh models for the specified `environment` and will automatically trigger when the next Cloud Scheduler run happens. - -You will see an entry in the DAG list: - -![Airflow UI list of DAGs](./airflow/dag_list.png) - -You can browse the DAG just like any other - each node is a SQLMesh model: - -![Airflow UI DAG view](./airflow/dag_view.png) - -## Debugging - -Each task in the local DAG writes logs that include a link to its corresponding remote task in Tobiko Cloud. - -In the Airflow UI, find these logs in the task's Logs tab: - -![Airflow UI task logs](./airflow/task_logs.png) - -Clicking the link opens the remote task in the Tobiko Cloud [Debugger View](../debugger_view.md), which provides information and tools to aid debugging: - -![Tobiko Cloud UI debugger view](./airflow/cloud_debugger.png) - -## Extending the DAG - -You may extend the local DAG with arguments to the `create_cadence_dag()` method. - -This section describes how to extend your local DAG and demonstrates some simple extensions. - -### Base DAG structure - -The local DAG represents your SQLMesh project's models and their activity in Tobiko Cloud. This section describes how the DAG is structured. - -The DAG is composed of SQLMesh models, but there must be a boundary around those models to separate them from your broader Airflow pipeline. The boundary consists of two tasks that serve as entry and exit nodes for the entire Tobiko Cloud run. - -The first and last tasks in the DAG are the boundary tasks. The tasks are the same in every local DAG instance: - -- First task: `Sensor` task that synchronizes with Tobiko Cloud -- Last task: `DummyOperator` task that ensures all models without downstream dependencies have completed before declaring the DAG completed - -![Airflow DAG boundary tasks](./airflow/boundary_tasks.png) - -### Using `create_cadence_dag()` - -The local DAG is extended at the time of creation via arguments to the `create_cadence_dag()` method. - -Each DAG corresponds to a specific SQLMesh project environment (`prod` by default). Specify another environment by passing its name to `create_cadence_dag()`'s `environment` argument. - -The `create_cadence_dag()` method returns a tuple of references: - -- `first_task` - a reference to the first task in the DAG (always the `Sensor` boundary task) -- `last_task` - a reference to the last task in the DAG (always the `DummyOperator` boundary task) -- `dag` - a reference to the Airflow `DAG` object - -Use these references to manipulate the DAG and attach extra behavior. - -### Examples - -#### Slack notification when run begins - -Attach a task to the `first_task` to send a Slack notification when a `run` completes: - -```python -# Create DAG -first_task, last_task, dag = tobiko_cloud.create_cadence_dag(environment="prod") - -# Attach Slack operator to first_task -first_task >> SlackAPIPostOperator(task_id="notify_slack", channel="#notifications", ...) -``` - -Airflow DAG view: - -![Airflow DAG with Slack notification task](./airflow/add_task_at_start.png) - -#### Send email and trigger DAG when run completes - -Attach tasks to the `last_task` to send an email and trigger another DAG on `run` completion: - -```python -# Create DAG -first_task, last_task, dag = tobiko_cloud.create_cadence_dag(environment="prod") - -# Attach Email operator to last_task -last_task >> EmailOperator(task_id="notify_admin", to="admin@example.com", subject="SQLMesh run complete") - -# Attach DAG trigger operator to last_task -last_task >> TriggerDagRunOperator(task_id="trigger_job", trigger_dag_id="some_downstream_job") -``` - -Airflow DAG view: - -![Airflow DAG with email and DAG trigger tasks on run completion](./airflow/add_task_at_end.png) - -#### Trigger DAG when specific model completes - -Trigger another DAG after a specific model has completed, without waiting for the entire run to complete: - -```python -# Create DAG -first_task, last_task, dag = tobiko_cloud.create_cadence_dag(environment="prod") - -# Get `sushi.customers` model task -customers_task = dag.get_task("sushi.customers") - -# Attach DAG trigger operator to `sushi.customers` model task -customers_task >> TriggerDagRunOperator(task_id="customers_updated", trigger_dag_id="some_other_pipeline", ...) -``` - -Airflow DAG view: - -![Airflow DAG with DAG trigger task on a specific model's completin](./airflow/add_task_after_specific_model.png) - -!!! info "Model task names" - - Each model's Airflow `task_id` is the SQLMesh fully qualified model name. View a task's `task_id` by hovering over its node in the Airflow DAG view. - - Each model's display name in the Airflow DAG view is just the *table* portion of the fully qualified model name. For example, a SQLMesh model named `foo.model_a` will be labeled `model_a` in the Airflow DAG view. - -## Configuration - -### `SQLMeshEnterpriseAirflow` parameters - -| Option | Description | Type | Required | -|-----------|--------------------------------------------------------------------------|:----:|:--------:| -| `conn_id` | The Airflow connection ID containing the Tobiko Cloud connection details | str | Y | - -### `create_cadence_dag()` parameters - -| Option | Description | Type | Required | -|----------------------|----------------------------------------------------------------------------------------|:----:|:--------:| -| `environment` | Which SQLMesh environment to target. Default: `prod` | str | N | -| `dag_kwargs` | A dict of arguments to pass to the Airflow DAG object when it is created. | dict | N | -| `common_task_kwargs` | A dict of kwargs to pass to all task operators in the DAG | dict | N | -| `sensor_task_kwargs` | A dict of kwargs to pass to just the sensor task operators in the DAG | dict | N | -| `report_task_kwargs` | A dict of kwargs to pass to just the model / progress report task operators in the DAG | dict | N | \ No newline at end of file diff --git a/docs/cloud/features/scheduler/airflow/add_connection.png b/docs/cloud/features/scheduler/airflow/add_connection.png deleted file mode 100644 index e73e6ef2e3..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/add_connection.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/add_task_after_specific_model.png b/docs/cloud/features/scheduler/airflow/add_task_after_specific_model.png deleted file mode 100644 index 00c527803f..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/add_task_after_specific_model.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/add_task_at_end.png b/docs/cloud/features/scheduler/airflow/add_task_at_end.png deleted file mode 100644 index c8c4753799..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/add_task_at_end.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/add_task_at_start.png b/docs/cloud/features/scheduler/airflow/add_task_at_start.png deleted file mode 100644 index e3630ce915..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/add_task_at_start.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/boundary_tasks.png b/docs/cloud/features/scheduler/airflow/boundary_tasks.png deleted file mode 100644 index 5bc69990d5..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/boundary_tasks.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/cloud_debugger.png b/docs/cloud/features/scheduler/airflow/cloud_debugger.png deleted file mode 100644 index ec62f6b3bb..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/cloud_debugger.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/connection_list.png b/docs/cloud/features/scheduler/airflow/connection_list.png deleted file mode 100644 index 37d0e85dde..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/connection_list.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/dag_list.png b/docs/cloud/features/scheduler/airflow/dag_list.png deleted file mode 100644 index 5cfbbbf2e0..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/dag_list.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/dag_view.png b/docs/cloud/features/scheduler/airflow/dag_view.png deleted file mode 100644 index 535f31602d..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/dag_view.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/airflow/task_logs.png b/docs/cloud/features/scheduler/airflow/task_logs.png deleted file mode 100644 index 5036c63c48..0000000000 Binary files a/docs/cloud/features/scheduler/airflow/task_logs.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster.md b/docs/cloud/features/scheduler/dagster.md deleted file mode 100644 index 054cc465c0..0000000000 --- a/docs/cloud/features/scheduler/dagster.md +++ /dev/null @@ -1,389 +0,0 @@ -# Dagster - -Tobiko Cloud's Dagster integration allows you to combine Dagster system monitoring with the powerful debugging tools in Tobiko Cloud. - -
- -## How it works - -Tobiko Cloud uses a custom approach to Dagster integration. - -The `mirror` job mirrors the progress of the Tobiko Cloud scheduler run. Each local task reflects the outcome of its corresponding remote task. If an asset is materialized remotely, the job emits a Dagster materialization event. - -This allows you to observe at a glance how your data pipeline is progressing, displayed alongside your other pipelines in Dagster. No need to context switch to Tobiko Cloud! - -### Why a custom approach? - -Tobiko Cloud's scheduler performs multiple optimizations to ensure that your pipelines run correctly and efficiently. Those optimizations are only possible within our SQLMesh-aware scheduler. - -Our approach allows you to benefit from those optimizations while retaining the flexibility to attach extra tasks or logic to the Dagster Assets created by Tobiko Cloud. - -Because `run`s are still triggered by the Tobiko Cloud scheduler and tasks in the local DAG just reflect their remote equivalent in Tobiko Cloud, we call our custom approach a *facade*. - -## Setup - -Your SQLMesh project must be configured and connected to Tobiko Cloud before using the Dagster integration. - -Learn more about connecting to Tobiko Cloud in the [Getting Started page](../../tcloud_getting_started.md). - -!!! info "Supported Dagster versions" - This integration is supported on Dagster 1.9.1 or later. Earlier versions may work but they are not tested. - -### Configure Dagster project - -After connecting your project to Tobiko Cloud, you're ready to set up the Dagster integration. - -First, navigate to your Dagster project or [create a new one](https://docs.dagster.io/guides/build/projects/creating-a-new-project). - -Next, add the `tobiko-cloud-scheduler-facade` library to the `dependencies` section of your [Dagster project](https://docs.dagster.io/guides/understanding-dagster-project-files)'s `pyproject.toml`: - -```python title="pyproject.toml" hl_lines="4" -[project] -dependencies = [ - "dagster", - "tobiko-cloud-scheduler-facade[dagster]" -], -``` - -And then install it into the Python environment used by your Dagster project: - -```sh -pip install -e '.[dev]' -``` - -### Connect Dagster to Tobiko Cloud - -Dagster recommends [injecting secret values using Environment Variables](https://docs.dagster.io/guides/dagster/using-environment-variables-and-secrets#using-environment-variables-and-secrets). The exact method you should use depends on how your organization deploys Dagster. - -On this page, we demonstrate the secrets method Dagster recommends for **local development**. - -First, provision an OAuth Client for Dagster to use by following the guide on how to [provision client credentials](../security/single_sign_on.md#provisioning-client-credentials). - -After provisioning the credentials, you can obtain the `Client ID` and `Client Secret` values for Dagster to use to connect to Tobiko Cloud. - -In your Dagster project, create an `.env` file if it does not already exist. Next, specify environment variables containing the Tobiko Cloud URL and OAuth secrets: - -```sh title=".env" -TCLOUD_BASE_URL= # ex: https://cloud.tobikodata.com/sqlmesh/tobiko/public-demo/ -TCLOUD_CLIENT_ID= # ex: '5ad2938d-e607-489a-8bec-bdfb5924b79b' -TCLOUD_CLIENT_SECRET= # ex: 'psohFoOcgweYnbx-bmYn3XXRDSNIP' -``` - -### Create Dagster objects - -You are now ready to create Dagster objects connected to Tobiko Cloud. - -This example code demonstrates the creation process, which requires: - -- Importing the `SQLMeshEnterpriseDagster` class from the `tobikodata` Python library -- Creating a `SQLMeshEnterpriseDagster` instance configured with the environment variables from the project's `.env` file -- Creating a `Definitions` object with the instance's `create_definitions()` method - -In your Dagster project's `definitions.py` file, insert the following: - -```python title="definitions.py" linenums="1" -from tobikodata.scheduler_facades.dagster import SQLMeshEnterpriseDagster -from dagster import EnvVar # for accessing variables in .env file - -# create and configure SQLMeshEnterpriseDagster instance named `sqlmesh` -sqlmesh = SQLMeshEnterpriseDagster( - url=EnvVar("TCLOUD_BASE_URL").get_value(), # environment variable from .env file - oauth_client_id=EnvVar("TCLOUD_CLIENT_ID").get_value(), # environment variable from .env file - oauth_client_secret=EnvVar("TCLOUD_CLIENT_SECRET").get_value(), # environment variable from .env file -) - -# create Definitions object with `sqlmesh` object's `create_definitions()` method -tobiko_cloud_definitions = sqlmesh.create_definitions(environment="prod") -``` - -!!! info - If there is an existing definitions object already declared in your Dagster project, merge in the Tobiko Cloud definitions like this: - - ```python - defs = Definitions(...) # existing Definitions object - - defs = Definitions.merge(defs, sqlmesh.create_definitions(environment="prod")) - ``` - -This is all that's needed to integrate with Tobiko Cloud! - -Once Dagster loads your project, the new SQLMesh objects will be available. - -## Available Dagster objects - -The Tobiko Cloud Dagster integration exports the following objects to Dagster: - -- An `Asset` object for every SQLMesh Model - ![Dagster UI Asset Lineage](./dagster/asset_lineage.png) -

- -- An `AssetCheck` object attached to the relevant `Asset`'s for every SQLMesh Audit - ![Dagster UI Asset Checks](./dagster/asset_check_list.png) -

- -- Two `Jobs`: - - A `sync` job to synchronise the current state of all Assets and Asset Checks from Tobiko Cloud to Dagster - - A `mirror` job that tracks a Cloud Scheduler run and mirrors the results to Dagster - ![Dagster UI Jobs List](./dagster/job_list.png) -

- -- A `Sensor` to monitor Tobiko Cloud for new cadence runs and trigger the `mirror` job when one is detected - ![Dagster UI Sensor List](./dagster/sensor_list.png) - -Once your Definitions are loaded by Dagster, these objects will be available in the Dagster UI. - -## Monitor Tobiko Cloud actions - -Dagster retrieves information from Tobiko Cloud with a [Sensor](https://docs.dagster.io/guides/automate/sensors). - -To start monitoring Tobiko Cloud actions, enable the Sensor [in the Dagster UI](https://docs.dagster.io/guides/automate/sensors/monitoring-sensors-in-the-dagster-ui): - -![Enable the track sensor](./dagster/enable_sensor.png) - -The Sensor is configured to run every 30 seconds. It does the following: - -- On the first run, it triggers the `sync` job. This synchronizes the materialization status of the Dagster assets with the Models and Audits from Tobiko Cloud. -- On subsequent runs, it checks if a new Cloud Scheduler run has occurred. If so, it triggers the `mirror` job to mirror the outcome of that run in Dagster. - -![Job run records in the Dagster UI](./dagster/job_run_records.png) - -!!! question "Why are there two jobs?" - The Tobiko Cloud scheduler does everything it can to prevent unnecessary work, such as only reporting materialization information for the models that were updated in a run. - - Therefore, Dagster does not receive materialization information for excluded models or objects that are never part of a cadence run (such as [seeds](../../../concepts/models/seed_models.md)). - - The `sync` jobs addresses this by copying the current state of the entire project. The `mirror` job then updates that information based on what happens during a specific cadence run. - -To manually refresh materialization information for all models, run the `sync` job manually from the Dagster UI: - -![Manually run the sync job](./dagster/manual_sync_run.png) - -## Debugging - -When something goes wrong, the first priority is getting more information. - -Tobiko Cloud makes it easy to access that information from Dagster via links to each object's corresponding remote task in Tobiko Cloud. - -In the Dagster UI, the links are available in the job's Logs page: - -![Dagster Job Logs](./dagster/job_logs.png) - -Alternatively, in the Asset Catalog, the link is included in the last evaluation's logs as Metadata: - -![Dagster Asset Metadata](./dagster/asset_latest_materialization_metadata.png) - -Clicking the link opens the remote task in the Tobiko Cloud [Debugger View](../debugger_view.md), which provides information and tools to aid debugging: - -![Tobiko Cloud UI debugger view](./airflow/cloud_debugger.png) - -## Picking up new Models - -Dagster does not automatically reload the Asset `Definitions` defined in the code [above](#create-dagster-objects). This means that models added or removed during a `plan` will not automatically appear in Dagster. - -This section describes two methods for refreshing Dagster and picking up those models. - -### Automatic method - -Dagster runs user code in an isolated sandbox for security purposes, which complicates automatic reloading of Asset `Definitions`. - -Specifically, we must use Dagster's GraphQL API, which is not enabled by default. To enable it, specify a GraphQL host and port when creating the `SQLMeshEnterpriseDagster` instance: - -```python title="definitions.py" linenums="1" hl_lines="4 5" -sqlmesh = SQLMeshEnterpriseDagster( - url=EnvVar("TCLOUD_BASE_URL").get_value(), - #...SNIP..., - dagster_graphql_host="localhost", # Example GraphQL host (could be passed in an environment variable instead) - dagster_graphql_port=3000 # Example GraphQL port (could be passed in an environment variable instead) -) -``` - -The GraphQL host and port above reflect the specific Dagster deployment used for this example. (A Dagster deployment in local development mode that was started with `dagster dev` typically uses hostname `localhost` and port `3000`.) - -The values you should specify for `dagster_graphql_host` and `dagster_graphql_port` depend on the GraphQL hostname and port in your Dagster deployment. - -The `mirror` job's Sensor automatically picks up the new/removed assets by issuing a GraphQL request to reload the Code Location. It then executes the `mirror` job as usual. - -### Manual method - -At any time, you can update Dagster's asset information by clicking the "Reload" Code Location button: - -![Dagster reload code location](./dagster/reload_code_location.png) - -## Attaching custom logic - -Dagster includes a robust events system that lets you detect and respond to events issued by your Assets or Jobs. - -Tobiko Cloud's Dagster integration lets you run your own custom logic in response to events emitted by Tobiko Cloud assets. - -To listen for materialization events on Assets, use an [Asset Sensor](https://docs.dagster.io/concepts/partitions-schedules-sensors/asset-sensors). - -To listen for job runs, use a [Run Status Sensor](https://docs.dagster.io/concepts/partitions-schedules-sensors/sensors#run-status-sensors). - -Dagster also provides a framework called [Declarative Automation](https://docs.dagster.io/concepts/automation/declarative-automation) that builds on top of these sensors. - -### Examples - -Here are some examples of running custom logic in response to Tobiko Cloud events. - -Note that Dagster has a lot of flexibility in how it can be configured, and the methods we describe below aren't necessarily the right choice for every configuration. - -We recommend familiarizing yourself with Dagster's [Automation](https://docs.dagster.io/concepts/automation) features to get the most out of your Tobiko Cloud deployment with Dagster. - -#### Respond to run status - -To listen for Tobiko Cloud run events, create a [Run Status Sensor](https://docs.dagster.io/concepts/partitions-schedules-sensors/sensors#run-status-sensors) that listens for events on the `mirror` job and triggers your custom job in response. - -![Dagster run status sensor](./dagster/run_status_sensor.png) - -Creating the Run Status Sensor has three steps: defining a custom job, detecting Tobiko Cloud events, and creating a Sensor that executes your custom job when events are detected. - -Step 1: Define a custom job - -Your custom job has full access to Python and any libraries installed in your Dagster environment, so you can implement any logic you like. - -Define a function executing your logic and decorate it with `@op`. Then define a function calling the logic function and decorate it with `@job` to group it into a Job: - -``` python linenums="1" -# function that implements custom logic -@op -def send_email(): - import smtplib - - with smtplib.SMTP("smtp.yourdomain.com") as server: - server.sendmail(...) - -# function that creates job to execute custom logic function -@job -def send_email_job(): - send_email() -``` - -Step 2: Detect Tobiko Cloud events - -There are two approaches to detecting Tobiko Cloud events. In the examples below, both approaches create a `mirror_job` object used by the Run Status Sensor. - -The reference approach detects events based on a reference to the Tobiko Cloud mirror job, which is always named `tobiko_cloud_mirror_run_prod`. It extracts the reference from the Definitions object we created above: - -``` python -mirror_job = tobiko_cloud_definitions.get_job_def("tobiko_cloud_mirror_run_prod") -``` - -Alternatively, use the [JobSelector](https://docs.dagster.io/concepts/partitions-schedules-sensors/sensors#cross-code-location-run-status-sensors) approach if the Tobiko Cloud Definitions are in their own Code Location and not directly accessible from your job code: - -``` python -from dagster import JobSelector - -mirror_job = JobSelector(job_name="tobiko_cloud_mirror_run_prod") -``` - -Step 3: Create a Run Status Sensor - -With our `mirror_job` object in hand, we are ready to create a `@run_status_sensor` that listens to the mirror job and triggers your custom job when the mirror job is complete: - -```python -@run_status_sensor( - run_status=DagsterRunStatus.SUCCESS, - monitored_jobs=[mirror_job], # Sensor should listen to `mirror_job` - request_job=send_email_job # Sensor should execute `send_email_job` when `mirror_job` is complete -) -def on_tobiko_cloud_start_run(context: RunStatusSensorContext): - return RunRequest() -``` - -You can adjust the decorator's `run_status` argument to listen for different statuses, the `monitored_jobs` argument to monitor other Tobiko Cloud jobs, and the `request_job` argument to trigger a different custom job when an event is detected. - -Here's an example that triggers a Slack notification when a new run starts: - -```python title="Sensor sends Slack notification when a new run starts" linenums="1" -from dagster import run_status_sensor, job, DagsterRunStatus, EnvVar, RunRequest, RunStatusSensorContext -from dagster_slack import SlackResource - -# get reference to mirror job -mirror_job = tobiko_cloud_definitions.get_job_def("tobiko_cloud_mirror_run_prod") - -# define custom logic function -@op -def slack_op(slack: SlackResource): - # see the dagster-slack docs here: https://docs.dagster.io/_apidocs/libraries/dagster-slack - slack.get_client().chat_postMessage(channel="#notifications", ...) - -# define job function that calls custom logic function -@job -def notify_slack(): - slack_op() - -# define Sensor -@run_status_sensor( - run_status=DagsterRunStatus.STARTED, # Listens for STARTED runs - monitored_jobs=[mirror_job], - request_job=notify_slack -) -def on_tobiko_cloud_start_run(context: RunStatusSensorContext): - return RunRequest() -``` - -#### Respond to Asset Materialization - -When Tobiko Cloud refreshes or adds new data to a model, a Materialization event occurs for its corresponding Asset in Dagster. The Materialization event provides a hook we can use to run custom logic. - -![Dagster asset sensor](./dagster/asset_sensor.png) - -As before, the custom logic can do anything you want, such as triggering the materialization of another Asset fully managed by Dagster or running some custom task. Triggering the materialization of Tobiko Cloud Assets will not work correctly, as they simply reflect the operations performed by Tobiko Cloud. - -To listen for Asset Materialization events, create an [Asset Sensor](https://docs.dagster.io/concepts/partitions-schedules-sensors/asset-sensors). - -For example, let's say your Tobiko Cloud project has a model called `postgres.crm.customers`, and it's showing in the Dagster Asset Catalog under "postgres / crm / customers". - -Define an Asset Sensor to respond to this model's materialization events like this: - -```python -from dagster import AssetKey, SensorEvaluationContext, EventLogEntry - -@job -def internal_customers_pipeline(): - # custom logic goes here - pass - -@asset_sensor( - asset_key=AssetKey(["postgres", "crm", "customers"]), # Asset key found in Dagster Asset Catalog - job=internal_customers_pipeline -) -def on_crm_customers_updated(context: SensorEvaluationContext, asset_event: EventLogEntry): - yield RunRequest() -``` - -The sensor will trigger every time the Asset with the key `postgres / crm / customers` is materialized. - -To identify the `AssetKey`'s of your Assets, check Dagster's Asset Catalog. Each part of the path is a segment of the Asset Key. - -![Dagster asset keys](./dagster/asset_keys.png) - -These `AssetKey` values correspond to the models in the screenshot above: - -```python -from dagster import AssetKey - -active_customers = AssetKey(["postgres", "sushi", "active_customers"]) -customer_revenue_by_day = AssetKey(["postgres", "sushi", "customer_revenue_by_day"]) -``` - -## Configuration - -### `SQLMeshEnterpriseDagster` parameters - -| Option | Description | Type | Required | -|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----:|:--------:| -| `url` | The Base URL to your Tobiko Cloud instance | str | Y | -| `oauth_client_id` | OAuth Client ID of the credentials you [provisioned](../security/single_sign_on.md#provisioning-client-credentials) for Dagster | str | N | -| `oauth_client_secret` | OAuth Client Secret of the credentials you [provisioned](../security/single_sign_on.md#provisioning-client-credentials) for Dagster | str | N | -| `dagster_graphql_host` | Hostname of the Dagster Webserver GraphQL endpoint | str | N | -| `dagster_graphql_port` | Port of the Dagster Webserver GraphQL endpoint | int | N | -| `dagster_graphql_kwargs` | Extra args to pass to the [DagsterGraphQLClient](https://docs.dagster.io/api/python-api/libraries/dagster-graphql#dagster_graphql.DagsterGraphQLClient) class when it is instantiated | dict | N | - -### `create_definitions()` parameters - -| Option | Description | Type | Required | -|----------------------------|----------------------------------------------------------------------------------------|:----:|:--------:| -| `environment` | Which SQLMesh environment to target. Default: `prod` | str | N | -| `asset_prefix` | Top-level category to nest Tobiko Cloud assets under | str | N | -| `enable_sensor_by_default` | Whether the Sensor that polls for new runs should be enabled by default. Default: True | bool | N | diff --git a/docs/cloud/features/scheduler/dagster/asset_check_list.png b/docs/cloud/features/scheduler/dagster/asset_check_list.png deleted file mode 100644 index 9e01ea0352..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/asset_check_list.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/asset_keys.png b/docs/cloud/features/scheduler/dagster/asset_keys.png deleted file mode 100644 index 217d6c8a31..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/asset_keys.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/asset_latest_materialization_metadata.png b/docs/cloud/features/scheduler/dagster/asset_latest_materialization_metadata.png deleted file mode 100644 index c3c39f2f6c..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/asset_latest_materialization_metadata.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/asset_lineage.png b/docs/cloud/features/scheduler/dagster/asset_lineage.png deleted file mode 100644 index 26cd22a386..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/asset_lineage.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/asset_sensor.png b/docs/cloud/features/scheduler/dagster/asset_sensor.png deleted file mode 100644 index fa38d8cefd..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/asset_sensor.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/enable_sensor.png b/docs/cloud/features/scheduler/dagster/enable_sensor.png deleted file mode 100644 index 8c4fdc3557..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/enable_sensor.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/job_list.png b/docs/cloud/features/scheduler/dagster/job_list.png deleted file mode 100644 index 88786930fd..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/job_list.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/job_logs.png b/docs/cloud/features/scheduler/dagster/job_logs.png deleted file mode 100644 index 6a7dcb88e2..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/job_logs.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/job_run_records.png b/docs/cloud/features/scheduler/dagster/job_run_records.png deleted file mode 100644 index 690186e332..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/job_run_records.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/manual_sync_run.png b/docs/cloud/features/scheduler/dagster/manual_sync_run.png deleted file mode 100644 index 64be419ead..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/manual_sync_run.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/reload_code_location.png b/docs/cloud/features/scheduler/dagster/reload_code_location.png deleted file mode 100644 index e4a28982e6..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/reload_code_location.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/run_status_sensor.png b/docs/cloud/features/scheduler/dagster/run_status_sensor.png deleted file mode 100644 index e709094780..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/run_status_sensor.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/dagster/sensor_list.png b/docs/cloud/features/scheduler/dagster/sensor_list.png deleted file mode 100644 index f9461f3879..0000000000 Binary files a/docs/cloud/features/scheduler/dagster/sensor_list.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/hybrid_executors/hybrid-executors_standard-hybrid-deployment.png b/docs/cloud/features/scheduler/hybrid_executors/hybrid-executors_standard-hybrid-deployment.png deleted file mode 100644 index 2877933d1f..0000000000 Binary files a/docs/cloud/features/scheduler/hybrid_executors/hybrid-executors_standard-hybrid-deployment.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/hybrid_executors_docker_compose.md b/docs/cloud/features/scheduler/hybrid_executors_docker_compose.md deleted file mode 100644 index 8f8f323139..0000000000 --- a/docs/cloud/features/scheduler/hybrid_executors_docker_compose.md +++ /dev/null @@ -1,121 +0,0 @@ -# Tobiko Cloud Hybrid Executors - Docker Compose Setup - -
- -This Docker Compose configuration allows you to run Tobiko Cloud hybrid executors locally or on any server that supports Docker Compose. - -Hybrid executors allow you to run operations on your own infrastructure while leveraging Tobiko Cloud for orchestration. - -## What this setup provides - -This setup deploys two hybrid executors that pass work tasks from Tobiko Cloud to your data warehouse in a secure way: - -- **Apply Executor**: Handles applying changes to the data warehouse -- **Run Executor**: Handles scheduled model execution - -Both executors must be properly configured with environment variables to connect to Tobiko Cloud and your data warehouse. - -## Prerequisites - -- Access to a [data warehouse supported by Tobiko Cloud](../../../integrations/overview.md#execution-engines) (e.g., Postgres, Snowflake, BigQuery) -- Docker and Docker Compose -- A Tobiko Cloud account with [client ID and client secret](../security/single_sign_on.md#provisioning-client-credentials) - -## Quick start guide - -1. **Get docker-compose file**: - - Download the [docker-compose.yml](https://raw.githubusercontent.com/SQLMesh/sqlmesh/refs/heads/main/docs/cloud/features/scheduler/scheduler/docker-compose.yml) and [.env.example](https://raw.githubusercontent.com/SQLMesh/sqlmesh/refs/heads/main/docs/cloud/features/scheduler/scheduler/.env.example) files to a local directory. - -2. **Create your environment file**: - - Copy the downloaded example environment file into a new `.env` file: - - ```bash - cp .env.example .env - ``` - -3. **Edit the .env file** with your project's configuration: - - - Set your Tobiko Cloud organization, project, client ID, and client secret - - Configure your gateway connection details - - Adjust resource limits if needed - -4. **Start the executors**: - - ```bash - docker compose up -d - ``` - -5. **Check the logs**: - - ```bash - docker compose logs -f - ``` - -## Configuration options - -### Gateway configuration - -The default configuration in the `docker-compose.yml` file uses Postgres, but you can use [any supported SQL engine](../../../integrations/overview.md#execution-engines) by adjusting the connection parameters in your `.env` file. - -#### Multiple gateways - -To configure multiple gateways, add additional environment variables for each gateway the `docker-compose.yml` file: - -```yaml -environment: - # First gateway - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__TYPE: ${DB_TYPE:-postgres} - # ... other GATEWAY_A configuration ... - - # Second gateway - SQLMESH__GATEWAYS__GATEWAY_B__CONNECTION__TYPE: snowflake - SQLMESH__GATEWAYS__GATEWAY_B__CONNECTION__ACCOUNT: ${SNOWFLAKE_ACCOUNT} - # ... other GATEWAY_B configuration ... -``` - -## Health checking - -Verify the health of your executors by running these commands: - -```bash -docker compose exec apply-executor /app/pex executor apply --check -docker compose exec run-executor /app/pex executor run --check -``` - -Example successful output: - -```bash -> docker compose exec apply-executor /app/pex executor apply --check -2025-04-09 21:24:49,873 - MainThread - httpx - INFO - HTTP Request: GET https://cloud.tobikodata.com/sqlmesh///api/state-sync/enterprise-version/upgrade "HTTP/1.1 200 OK" (_client.py:1025) -2025-04-09 21:24:49,889 - MainThread - tobikodata.tcloud.installer - INFO - Executor is installed (installer.py:180) -``` - -In addition, ensure the executors are healthy by running `echo $?` to confirm the check command returned exit code 0. - -## Stopping the executors - -To stop the executors: - -```bash -docker compose down -``` - -## Troubleshooting - -If you encounter issues: - -1. Check the logs: `docker compose logs -f` -2. Verify your connection settings in the `.env` file -3. Ensure your client ID and client secret are correct -4. Check that your SQL engine is accessible from the Docker containers - -## Security considerations - -!!! warning "Never commit .env to version control" - - The `.env` file contains sensitive information. Never commit it to version control. - -- Consider using Docker secrets or a secrets management solution in production environments. -- For production deployments, consider using the Kubernetes Helm chart instead, which offers more robust reliability and secret management options. \ No newline at end of file diff --git a/docs/cloud/features/scheduler/hybrid_executors_helm.md b/docs/cloud/features/scheduler/hybrid_executors_helm.md deleted file mode 100644 index b945ad6bd6..0000000000 --- a/docs/cloud/features/scheduler/hybrid_executors_helm.md +++ /dev/null @@ -1,328 +0,0 @@ -# Tobiko Cloud Hybrid Executors Helm Chart - -This Helm chart deploys Tobiko Cloud hybrid executors, enabling your on-premise Kubernetes cluster to connect to Tobiko Cloud for operations. - -Hybrid executors allow you to run operations on your own infrastructure while leveraging Tobiko Cloud for orchestration. - -## What this chart does - -This chart deploys two hybrid executors that pass work tasks from Tobiko Cloud to your data warehouse in a secure way: - -- **Apply Executor**: Handles applying changes to the data warehouse -- **Run Executor**: Handles scheduled model execution - -Both executors must be properly configured with environment variables to connect to Tobiko Cloud and your data warehouse. - -## Prerequisites - -- Access to a [data warehouse supported by Tobiko Cloud](../../../integrations/overview.md#execution-engines) (e.g., Postgres, Snowflake, BigQuery) -- Helm 3.8+ -- A Tobiko Cloud account with [client ID and client secret](../security/single_sign_on.md#provisioning-client-credentials) - -## Quick start guide - -Create a `values.yaml` file with your Tobiko Cloud configuration. - -```bash -# Create a values file -cat > my-values.yaml << EOF -global: - cloud: - org: "your-organization" - project: "your-project" - clientId: "your-client-id" - clientSecret: "your-client-secret" - sqlmesh: - gateways: - gateway_a: - connection: - type: postgres - host: "your-database-host" - port: 5432 - database: "your-database" - user: "your-database-user" -EOF -``` - -### Option 1: Install Directly with Helm - -```bash -# Install the chart from local directory -helm install executors oci://registry-1.docker.io/tobikodata/hybrid-executors -f my-values.yaml -``` - -### Option 2: Generate YAML files without installing - -If you prefer to review and apply the Kubernetes YAML files manually: - -```bash -# Generate YAML files without installing -helm template executors oci://registry-1.docker.io/tobikodata/hybrid-executors -f my-values.yaml > generated-manifests.yaml -``` - -```bash -# Review the generated files -cat generated-manifests.yaml -``` - -```bash -# Apply when ready -kubectl apply -f generated-manifests.yaml -``` - -## Basic configuration - -The most important configuration values are: - -| Parameter | Description | Required | -|-----------------------------|-------------------------------------|--------------------| -| `global.cloud.org` | Your Tobiko Cloud organization name | Yes | -| `global.cloud.project` | Your Tobiko Cloud project name | Yes | -| `global.cloud.clientId` | Your Tobiko Cloud client ID | Yes | -| `global.cloud.clientSecret` | Your Tobiko Cloud client secret | Yes | -| `global.sqlmesh.gateways` | Database connections configuration | Yes | - -### Gateway configuration - -Configure your gateway's SQL engine connection in the `global.sqlmesh.gateways` section: - -```yaml -global: - sqlmesh: - gateways: - gateway_a: # Put the default gateway first if defining multiple gateways - connection: - type: postgres # Or snowflake, bigquery, etc. - host: "your-db-host" - port: 5432 - database: "sqlmesh" - user: "sqlmesh_user" - # Password should be managed as a secret (see below) -``` - -## Secret management options - -The chart provides multiple options for managing secrets. Use the one most aligned with your security requirements and deployment patterns. - -### Context: Helm's dynamic secret detection - -The chart automatically treats `global.cloud.clientSecret` and any gateway connection parameter with keywords `password`, `secret`, or `token` in its name as a secret: - -```yaml -global: - cloud: - clientId: "your-client-id" # Not a secret - clientSecret: "your-client-secret" # Automatically treated as a secret (contains keyword "secret") - sqlmesh: - gateways: - gateway_a: - connection: - type: postgres # Not a secret - host: "my-db-host" # Not a secret - password: "p@ssw0rd" # Automatically treated as a secret (contains keyword "password") - client_secret: "xyz123" # Automatically treated as a secret (contains keyword "secret") - api_token: "abc456" # Automatically treated as a secret (contains keyword "token") - access_key: "key123" # Not a secret -``` - -Use the `secretParams` key to force parameters to be treated as secrets (even if their name doesn't contain a secret keyword): - -```yaml -global: - sqlmesh: - # Force these parameters to be treated as secrets regardless of name - secretParams: ["access_key", "certificate"] - # Force these parameters to NOT be treated as secrets even if they contain secret keywords - nonSecretParams: ["token_endpoint", "password_policy"] -``` - -### Option 1: Secrets directly in values.yaml (development only) - -!!! warning "Development only" - - This approach is only recommended for development environments and testing. - - Never store secrets in plain text in version control. - -Define secrets directly in the values file: - -```yaml -global: - cloud: - clientId: "your-tobiko-cloud-client-id" # Not a secret - clientSecret: "your-tobiko-cloud-client-secret" # Automatically treated as a secret -``` - -### Option 2: Existing Kubernetes Secrets - -Reference an existing Kubernetes Secret: - -```yaml -secrets: - existingSecret: "my-existing-secret" -``` - -The existing secret must contain the required keys: - -- `TCLOUD_CLIENT_SECRET` -- `SQLMESH__GATEWAYS____CONNECTION__` for each gateway secret - -If your executors use different secrets, you can specify secrets at the executor level: - -```yaml -apply: - envFromSecret: "apply-executor-secrets" -run: - envFromSecret: "run-executor-secrets" -``` - -### Option 3: External Secrets Operator - -If you're using [External Secrets Operator](https://external-secrets.io/), you can pull secrets from your secret store: - -```yaml -secrets: - externalSecrets: - enabled: true - secretStore: "aws-secretsmanager" - keyPrefix: "sqlmesh/" -``` - -This will create an ExternalSecret resource that pulls secrets from your configured secret provider. - -### Example: Creating a secret manually - -Create a secret with all required credentials: - -```bash -kubectl create secret generic my-sqlmesh-secrets \ - --from-literal=TCLOUD_CLIENT_SECRET=your-client-secret \ - --from-literal=SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__PASSWORD=your-password \ - --from-literal=SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__API_TOKEN=your-token \ - --from-literal=SQLMESH__GATEWAYS__GATEWAY_B__CONNECTION__CLIENT_SECRET=another-secret -``` - -Then reference it in your values: - -```yaml -secrets: - existingSecret: "my-sqlmesh-secrets" - -global: - cloud: - clientId: "your-client-id" # Not a secret - # Secret values will be loaded from the secret - # clientSecret: (loaded from secret) - sqlmesh: - gateways: - gateway_a: - connection: - # Define all non-secret parameters here - type: postgres - host: "my-db-host" - port: 5432 - database: "sqlmesh" - user: "sqlmesh_user" - # Secret values will be loaded from the secret - # password: (loaded from secret) - # api_token: (loaded from secret) - gateway_b: - connection: - type: snowflake - # Other non-secret parameters - # client_secret: (loaded from secret) -``` - -### Example: Using an existing secret - -```yaml -# values.yaml -secrets: - existingSecret: "my-sqlmesh-secrets" - -global: - image: - repository: tobikodata/tcloud - tag: latest - cloud: - org: "my-organization" - project: "my-project" - clientId: "your-client-id" - sqlmesh: - gateways: - gateway_a: - connection: - type: postgres - host: "my-db-host" - port: 5432 - database: "sqlmesh" - user: "sqlmesh_user" - -apply: - replicaCount: 1 - -run: - replicaCount: 2 -``` - -## Defining Custom Environment Variables - -If there are additional environment variables that are required to run your project, you will want to define them for both the apply and run executors. - -```yaml -apply: - extraEnvVars: - - name: MY_CUSTOM_ENV_VAR - value: "my_value" -run: - extraEnvVars: - - name: MY_CUSTOM_ENV_VAR - value: "my_value" -``` - -## Customizing resources - -You can customize CPU, memory, and ephemeral-storage for each executor. This sets the resources for the `apply` executor: - -```yaml -apply: - resources: - requests: - memory: "2Gi" - cpu: "1" - ephemeral-storage: "10Gi" - limits: - memory: "4Gi" - cpu: "2" - ephemeral-storage: "10Gi" -``` - -## Verifying the installation - -After installation, check that the executors are running: - -```bash -kubectl get pods -l app.kubernetes.io/instance=my-executors -``` - -You should see pods for both apply and run executors: -``` -NAME READY STATUS RESTARTS AGE -my-executors-apply-7b6c9d8f9-abc12 1/1 Running 0 1m -my-executors-run-6d5b8c7e8-def34 1/1 Running 0 1m -``` - -## Troubleshooting - -If your executors aren't starting properly, check the logs: - -```bash -kubectl logs -l app.kubernetes.io/instance=my-executors,app.kubernetes.io/component=apply-executor -kubectl logs -l app.kubernetes.io/instance=my-executors,app.kubernetes.io/component=run-executor -``` - -Common issues: - -- Incorrect client ID or client secret -- SQL engine connection issues -- Insufficient permissions \ No newline at end of file diff --git a/docs/cloud/features/scheduler/hybrid_executors_overview.md b/docs/cloud/features/scheduler/hybrid_executors_overview.md deleted file mode 100644 index ae07cfc364..0000000000 --- a/docs/cloud/features/scheduler/hybrid_executors_overview.md +++ /dev/null @@ -1,172 +0,0 @@ -# Overview - -In a standard deployment, Tobiko Cloud securely manages your data warehouse connections so it can run your project. - -However, you may prefer not to share your data warehouse credentials or want to bring the execution closer to your data. To support this, Tobiko Cloud offers hybrid deployments where we host the scheduler and you host the executors that perform the scheduled actions. - -With this approach, Tobiko Cloud uses project metadata to manage SQLMesh user access control, schedule and trigger runs, and apply plans, but all data access and query execution occurs within your infrastructure. Tobiko Cloud has no access to your data or warehouse credentials. - -This gives you complete control over data security and network access while still benefiting from Tobiko Cloud's powerful scheduling capabilities. - -## How it works - -Tobiko Cloud has three primary tasks: determine what should happen when (scheduling), make those things happen (executing), and monitor everything that happens (observing). - -In a standard deployment, all three of these occur within the Tobiko Cloud environment. You configure a gateway in Tobiko Cloud, and Tobiko Cloud uses it to execute work tasks (such as a `plan` or `run`). - -In a hybrid deployment, Tobiko Cloud does not execute tasks directly with the engine. Instead, it passes tasks to the executors hosted in your environment, which then execute the tasks with the engine. This extra layer between Tobiko Cloud and your SQL engine means Tobiko Cloud has no knowledge of your credentials. - -Executors are Docker containers that connect to both Tobiko Cloud and your SQL engine. They pull work tasks from the Tobiko Cloud scheduler and execute them with your SQL engine. - -![Architecture for standard and hybrid deployments](./hybrid_executors/hybrid-executors_standard-hybrid-deployment.png) - -## Deployment Options - -You can deploy the executor containers using any method that works for your infrastructure and operational requirements. - -The executors are standard Docker containers that can be deployed in any container environment as long as they're configured with the required environment variables. - -We provide two reference implementations: - -1. [**Kubernetes with Helm Chart**](./hybrid_executors_helm.md): For production environments, we provide a [Helm chart](./hybrid_executors_helm.md) that includes robust configurability, secret management, and scaling options. - -2. [**Docker Compose**](./hybrid_executors_docker_compose): For simpler environments or testing, we offer a [Docker Compose setup](./hybrid_executors_docker_compose) to quickly deploy executors on any machine with Docker. - -You're free to adapt these reference implementations or create your own deployment method that fits your specific needs. - -As described below, two executor instances must be running and properly configured at all times (one executor for `run` operations and one for `apply` operations). - -## Configuration - -This section describes basic configuration concepts for hybrid executors. For detailed configuration options, refer to the documentation for your chosen deployment method above. - -Tobiko Cloud requires 2 executor instances to be running at all times: - -1. **Run Executor**: Handles scheduled model execution -2. **Apply Executor**: Handles applying changes to the data warehouse - -Both executors need to be properly configured with environment variables for connecting to Tobiko Cloud and your data warehouse. - -### Environment Variables - -Executors require different types of information to connect to Tobiko Cloud and your data warehouse. Provide that information via environment variables. - -#### TCLOUD variables - -One important type of environment variable is the `TCLOUD` variables used for connecting to Tobiko Cloud. - -The first required `TCLOUD` variable is a unique Tobiko Cloud URL for your project, which your Solutions Architect will provide after your project is created. - -You also need the Client ID and Client Secret variables, which are generated when you [create an OAuth Client](../security/single_sign_on.md#provisioning-client-credentials) in the Tobiko Cloud UI. - -Specify the URL, Client ID, and Client Secret in these environment variables: - -``` bash -TCLOUD_URL={your Tobiko Cloud project URL} -TCLOUD_CLIENT_ID={your Client ID} -TCLOUD_CLIENT_SECRET={your Client Secret} -``` - -!!! important "Set TCLOUD variables on the Docker container" - - Environment variables used for connecting to Tobiko Cloud, such as `TCLOUD_URL`, `TCLOUD_CLIENT_ID`, and `TCLOUD_CLIENT_SECRET`, must be set on the executor's Docker container. - -#### Other environment variables - -The executors also require configuration parameters for other aspects of your project. - -For example, your executor must know how to connect to your SQL engine, so you must configure a [gateway via environment variables](../../../guides/configuration.md#overrides). - -This example specifies a Postgres gateway named "GATEWAY_A" and set it as the default gateway: - -```env -SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__TYPE=postgres -SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__HOST=10.10.10.10 -SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__PORT=5432 -SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__DATABASE=example_db -SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__USER=example_user -SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__PASSWORD=example_password - -# make it the default gateway -SQLMESH__DEFAULT_GATEWAY=GATEWAY_A -``` - -**Note**: If your project uses multiple gateways, each gateway requires its own set of environment variables. - -For example, we might add a second gateway named "GATEWAY_B" like this. Note that the gateway names `GATEWAY_A` and `GATEWAY_B` are embedded in the environment variable name: - -```env -SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__TYPE= -# - -SQLMESH__GATEWAYS__GATEWAY_B__CONNECTION__TYPE= -# -``` - -For more configuration details, including secure secret management options, refer to the [Helm chart](./hybrid_executors_helm.md) or [Docker Compose](./hybrid_executors_docker_compose) deployment documentation. - -After the executors are configured and running, they will connect to Tobiko Cloud. Once connected, they will appear in the cloud UI and be ready to apply `plan`s and execute scheduled `run`s. - -![executors](./scheduler/executors.png) - -We strongly recommend setting up a monitoring system for the executor containers to ensure they run smoothly and to help troubleshoot issues. Monitoring should include logs and system metrics like memory and CPU usage. - -#### .env file - -As mentioned above, `TCLOUD` environment variables **must** be set on the executor's Docker container. However, other environment variables can be set later because they are only needed after the executor is connected to Tobiko Cloud. - -Instead of setting a variable on the container, you can use a `.env` file. This can be useful for environment variables that require frequent updating, such as short-lived API tokens. - -!!! note "Only if necessary" - - Using a `.env` file increases the complexity of your deployment, so only use it if you have environment variables that require frequent updates. - -Create a `.env` file and define your environment variables in it. Then, mount the `.env` file into the docker image. Any external process can update the file with a new variable value, and the executor will automatically pick up the changes. - -Tell the executor where to find the `.env` file by specifying the file's full path in the `TCLOUD` environment variable `TCLOUD_ENV_FILE`. - -**Note**: the `TCLOUD_ENV_FILE` environment variable **must** be set on the executor's Docker container, just like the `TCLOUD_URL`, `TCLOUD_CLIENT_ID`, and `TCLOUD_CLIENT_SECRET` variables. - -### Network Configuration - -Tobiko Cloud never pushes information into your network, so it doesn't need inbound access. - -Instead, the executors you host make outbound requests polling Tobiko Cloud for work tasks and other information. Executors are only required to connect to Tobiko Cloud and your SQL engine, with all information flowing via outbound requests. - -If the executors are running in a network without public internet access, configure the network to allow executor and local user access to Tobiko Cloud on these IP addresses: - -```bash -34.28.17.91 -34.136.27.153 -34.136.131.201 -``` - -### Project Configuration - -Project configuration is the same for hybrid and standard Tobiko Cloud deployments. - -See [connection configuration](./scheduler.md#connection-configuration) for details. - -## Required system specs - -The exact system requirements for executors vary depending on your project and work processes. - -In general, we recommend a minimum of 2GB of RAM and 1 vCPU for each executor. - -Complex or resource-intensive Python models may require executors with more resources. - -## Health checks - -In production settings, we recommend setting up health checks to monitor the status of your executors. - -Health checks help ensure your executors are operating correctly and can identify issues before they impact your workflows. - -For detailed information on implementing health checks: - -- **Kubernetes/Helm**: see the [Hybrid Executors Helm Chart documentation](./hybrid_executors_helm.md#verifying-the-installation) for information on health check configuration in Kubernetes. - -- **Docker Compose**: see the [Docker Compose setup documentation](./hybrid_executors_docker_compose#health-checking) for health check implementation with Docker Compose. - -Both executor types (run and apply) should have appropriate health checks to ensure proper system monitoring and reliability. - -**Note** When configuring health checks, ensure timeouts are set appropriately based on your executors' resources. Default timeouts can sometimes be too short. diff --git a/docs/cloud/features/scheduler/scheduler.md b/docs/cloud/features/scheduler/scheduler.md deleted file mode 100644 index 5d28a3be50..0000000000 --- a/docs/cloud/features/scheduler/scheduler.md +++ /dev/null @@ -1,243 +0,0 @@ -# Scheduler - -Tobiko Cloud offers scheduling capabilities that have several advantages over the scheduler built into the open source version of SQLMesh. - -## Cloud scheduler benefits - -This section describes the specific advantages of using the Tobiko Cloud scheduler. - -### Schedule executions - -With Tobiko Cloud, users don't need to configure a cron job that periodically runs the `sqlmesh run` command. - -Instead, Tobiko Cloud automatically schedules model execution based on the cron expressions in the project's model definitions. - -### Concurrent runs - -Unlike the built-in scheduler, Tobiko Cloud parallelizes both model executions and run jobs. - -This means that if one run job is blocked by a long-running model, other independent models can still execute concurrently in separate run jobs. - -### Run pausing - -Tobiko Cloud allows you to pause and resume model execution at both the environment and individual model level. - -This granular control helps prevent problems during maintenance windows and troubleshoot issues. - -### Isolated Python environments - -Tobiko Cloud automatically manages Python dependencies of your Python macros and models. - -Each virtual environment has its own isolated Python environment and set of dependencies, ensuring that changes in one environment won't affect other environments. - -### Improved concurrency control - -The cloud scheduler ensures that plans targeting the same environment are applied sequentially, preventing race conditions and ensuring correct results. - -### Access control - -Tobiko Cloud manages your data warehouse connection. This allows users to execute `run` and `plan` commands without needing local access to warehouse credentials. - -Tobiko Cloud also provides fine-grained access control for the `run` and `plan` commands. User permissions may be limited to specific environments or models (coming soon). - -## Using the Cloud scheduler - -This section describes how to configure and use the Tobiko Cloud scheduler. - -### Connection configuration - -To start using the cloud scheduler, configure the connection to your data warehouse in the Tobiko Cloud UI. -

- -**Step 1**: Click on the "Settings" tab in the sidebar. - -![settings_tab](./scheduler/settings_tab.png) -

- -**Step 2**: Navigate to the "Connections" tab (1) and click on the "Add Connection" button (2). - -![add_connection](./scheduler/add_connection.png) -

- -**Step 3**: Enter the name of the gateway in the Gateway field and the connection configuration in YAML format in the YAML Configuration field. - -The format follows the [connection configuration](../../../guides/configuration.md#connections) in the SQLMesh Connections guide. - -!!! warning "Gateway names must match" - - This gateway name must match the name of the gateway specified in the project's `config.yaml` file. - -![add_connection_form](./scheduler/add_connection_form.png) -

- -**Step 4**: Click the "Save" button to add the connection. - -The connection will be tested and only saved if the connection is successful. The configuration is stored in encrypted form using AES-256 encryption and is only decrypted for execution purposes. - -![add_connection_success](./scheduler/add_connection_success.png) -

- -**Step 5**: Switch to the Cloud scheduler in the project's configuration file. - -Update your project's `config.yaml` file to specify a scheduler of type `cloud`. - -!!! warning "Gateway name must match" - - This gateway name must match the name of the gateway that was specified when adding the connection in the Tobiko Cloud UI. - -=== "YAML" - - ```yaml linenums="1" hl_lines="3 4" - gateways: - gateway_a: - scheduler: - type: cloud - - default_gateway: gateway_a - ``` - -=== "Python" - - ```python linenums="1" hl_lines="8" - from sqlmesh.core.config import GatewayConfig - - from tobikodata.sqlmesh_enterprise.config import EnterpriseConfig, RemoteCloudSchedulerConfig - - config = EnterpriseConfig( - gateways={ - "gateway_a": GatewayConfig( - scheduler=RemoteCloudSchedulerConfig() - ), - }, - default_gateway="gateway_a", - ) - ``` - -### Pausing model executions - -Temporarily pausing model execution can be useful when troubleshooting issues or during maintenance windows. - -Tobiko Cloud allows you to pause and resume model execution at both the environment and individual model level. - -#### Pausing all models in an environment - -To pause all models in an environment, navigate to the environment's page and click the "Pause" button. - -This will pause **all** model executions in this environment. - -![pause_environment](./scheduler/pause_environment.png) - -To resume the environment, click the "Resume" button. - -![resume_environment](./scheduler/resume_environment.png) -

- -#### Pausing a model - -To pause a model in a specific environment, navigate to the environment's page and click "See all pauses" (located next to the "Pause" button). - -![see_all_pauses](./scheduler/see_all_pauses.png) - -In that page, click the "Create Pause" button. - -![create_pause](./scheduler/create_pause.png) - -Select the model you want to pause and provide a reason for pausing it (optional). - -![create_pause_form](./scheduler/create_pause_form.png) - -Click the "Create" button in the bottom right. - -The target model and its downstream dependencies will not be run in this environment. - -!!! note "Paused models included in plans" - - Paused models will not execute during a `run`, but they will execute during a `plan` application (if affected by the plan's changes). -

- -#### Resuming a model - -To resume a model, navigate to an environment's pauses page and click the "Delete" button for that model's pause. - -![delete_pause](./scheduler/delete_pause.png) - -## Python Dependencies - -Tobiko Cloud automatically manages Python dependencies of your Python macros and models. Each virtual environment has its own isolated Python environment where relevant libraries are installed, ensuring that changes in one environment won't affect other environments. - -SQLMesh automatically infers which Python libraries are used by statically analyzing the code of your models and macros. - -For fine-grained control, dependencies can be specified, pinned, or excluded using the `sqlmesh-requirements.lock` file. See the [Python library dependencies](../../../guides/configuration.md#python-library-dependencies) section in the SQLMesh configuration guide for more information. - -## Secret Manager - -Tobiko Cloud provides a secrets manager where you can define environment variables for your project's Python models. - -These variables are most commonly used to provide sensitive information to Python models, such as API keys or other credentials. - -Secret values are encrypted at rest and only available in the environment of your running Python models. - -!!! note "Cloud Scheduler Only" - - Secrets from the secret manager do not load into hybrid executors. They are only used for cloud scheduler executors. - -Secret names have two restrictions - they must: - -- Start with a letter or an underscore -- Only include letters, numbers, and underscores (no spaces or other symbols) - -Secret values have no limits or restrictions. We recommend base64 encoding any secrets that contain binary data. - -### Defining secrets - -Define a secret on the Secrets page, accessible via the Settings section in Tobiko Cloud's left side navigation bar. - -The Secrets page has a single panel you use to create a new secret, edit the value of an existing secret, or remove an existing secret. You cannot view the value of any existing secret. - -In this example, only one secret has been defined: `MY_SECRET`. Update its value by entering a new value in the Secret field and clicking the `Update` button, or delete it by clicking the `Remove` button. - -![secrets_panel](./scheduler/secrets.png) - - -### Python Model Example - -This Python model demonstrates how to read the `MY_SECRET` secret from an environment variable. - -!!! danger "Protecting Secrets" - - Only read environment variables from inside a Python model's `execute` function definition (not in the global scope). - - If the variable is read in the global scope, SQLMesh will load the value from *your local system* when it renders the Python model instead of loading it at runtime on our executors. - - This could expose sensitive information or embed an incorrect local value in the rendered model. - -```python linenums="1" -import os -import pandas as pd -import typing as t -from datetime import datetime - -from sqlmesh import ExecutionContext, model - -# DO NOT read environment variables here. -# Only inside the `execute` function definition! - -@model( - "my_model.name", - columns={ - "column_name": "int", - }, -) -def execute( - context: ExecutionContext, - start: datetime, - end: datetime, - execution_time: datetime, - **kwargs: t.Any, -) -> pd.DataFrame: - - # Read a secret from the MY_SECRET environment variable - my_secret = os.environ["MY_SECRET"] - - ... -``` diff --git a/docs/cloud/features/scheduler/scheduler/.env.example b/docs/cloud/features/scheduler/scheduler/.env.example deleted file mode 100644 index c71357553b..0000000000 --- a/docs/cloud/features/scheduler/scheduler/.env.example +++ /dev/null @@ -1,24 +0,0 @@ -# Tobiko Cloud Configuration -ORGANIZATION=your-organization -PROJECT=your-project -TCLOUD_CLIENT_ID=your-client-id -TCLOUD_CLIENT_SECRET=your-client-secret - -# Database Configuration -DEFAULT_GATEWAY=GATEWAY_A -DB_TYPE=postgres -DB_HOST=your-database-host -DB_PORT=5432 -DB_NAME=your-database-name -DB_USER=your-database-user -DB_PASSWORD=your-database-password - -# Optional: Resource Limits -APPLY_MEMORY_LIMIT=4g -APPLY_CPU_LIMIT=2 -APPLY_MEMORY_REQUEST=2g -APPLY_CPU_REQUEST=1 -PLAN_MEMORY_LIMIT=4g -PLAN_CPU_LIMIT=2 -PLAN_MEMORY_REQUEST=2g -PLAN_CPU_REQUEST=1 \ No newline at end of file diff --git a/docs/cloud/features/scheduler/scheduler/add_connection.png b/docs/cloud/features/scheduler/scheduler/add_connection.png deleted file mode 100644 index c11930a4d5..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/add_connection.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/add_connection_form.png b/docs/cloud/features/scheduler/scheduler/add_connection_form.png deleted file mode 100644 index f2b49d2052..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/add_connection_form.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/add_connection_success.png b/docs/cloud/features/scheduler/scheduler/add_connection_success.png deleted file mode 100644 index 7bf74c4bb6..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/add_connection_success.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/add_oath_client.png b/docs/cloud/features/scheduler/scheduler/add_oath_client.png deleted file mode 100644 index 4e255f775a..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/add_oath_client.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/create_pause.png b/docs/cloud/features/scheduler/scheduler/create_pause.png deleted file mode 100644 index 08fdc40bd4..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/create_pause.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/create_pause_form.png b/docs/cloud/features/scheduler/scheduler/create_pause_form.png deleted file mode 100644 index 56c5758144..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/create_pause_form.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/delete_pause.png b/docs/cloud/features/scheduler/scheduler/delete_pause.png deleted file mode 100644 index 4c7e1be36f..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/delete_pause.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/docker-compose.yml b/docs/cloud/features/scheduler/scheduler/docker-compose.yml deleted file mode 100644 index 0cbf2426eb..0000000000 --- a/docs/cloud/features/scheduler/scheduler/docker-compose.yml +++ /dev/null @@ -1,72 +0,0 @@ -services: - apply-executor: - image: tobikodata/tcloud:latest - platform: linux/amd64 - command: executor apply - restart: unless-stopped - environment: - # Tobiko Cloud connection - TCLOUD_URL: https://internal.cloud.tobikodata.com/sqlmesh/${ORGANIZATION}/${PROJECT} - TCLOUD_CLIENT_ID: ${TCLOUD_CLIENT_ID} - TCLOUD_CLIENT_SECRET: ${TCLOUD_CLIENT_SECRET} - - # SQLMesh configuration - SQLMESH__DEFAULT_GATEWAY: ${DEFAULT_GATEWAY:-GATEWAY_A} - - # Example database configuration (adjust for your database) - # All database parameters below should be customized for your specific setup - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__TYPE: ${DB_TYPE} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__HOST: ${DB_HOST} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__PORT: ${DB_PORT} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__DATABASE: ${DB_NAME} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__USER: ${DB_USER} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__PASSWORD: ${DB_PASSWORD} - volumes: - # Optional volume for persistent storage if needed - - apply-executor-data:/app/data - deploy: - resources: - limits: - memory: ${APPLY_MEMORY_LIMIT:-4g} - cpus: ${APPLY_CPU_LIMIT:-2} - reservations: - memory: ${APPLY_MEMORY_REQUEST:-2g} - cpus: ${APPLY_CPU_REQUEST:-1} - - run-executor: - image: tobikodata/tcloud:latest - platform: linux/amd64 - command: executor run - restart: unless-stopped - environment: - # Tobiko Cloud connection - TCLOUD_URL: https://internal.cloud.tobikodata.com/sqlmesh/${ORGANIZATION}/${PROJECT} - TCLOUD_CLIENT_ID: ${TCLOUD_CLIENT_ID} - TCLOUD_CLIENT_SECRET: ${TCLOUD_CLIENT_SECRET} - - # SQLMesh configuration - SQLMESH__DEFAULT_GATEWAY: ${DEFAULT_GATEWAY:-GATEWAY_A} - - # Example database configuration (adjust for your database) - # All database parameters below should be customized for your specific setup - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__TYPE: ${DB_TYPE} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__HOST: ${DB_HOST} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__PORT: ${DB_PORT} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__DATABASE: ${DB_NAME} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__USER: ${DB_USER} - SQLMESH__GATEWAYS__GATEWAY_A__CONNECTION__PASSWORD: ${DB_PASSWORD} - volumes: - # Optional volume for persistent storage if needed - - run-executor-data:/app/data - deploy: - resources: - limits: - memory: ${PLAN_MEMORY_LIMIT:-4g} - cpus: ${PLAN_CPU_LIMIT:-2} - reservations: - memory: ${PLAN_MEMORY_REQUEST:-2g} - cpus: ${PLAN_CPU_REQUEST:-1} - -volumes: - apply-executor-data: {} - run-executor-data: {} diff --git a/docs/cloud/features/scheduler/scheduler/executors.png b/docs/cloud/features/scheduler/scheduler/executors.png deleted file mode 100644 index b3df53da31..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/executors.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/pause_environment.png b/docs/cloud/features/scheduler/scheduler/pause_environment.png deleted file mode 100644 index 1027c879b2..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/pause_environment.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/resume_environment.png b/docs/cloud/features/scheduler/scheduler/resume_environment.png deleted file mode 100644 index 4d55bf4f18..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/resume_environment.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/secrets.png b/docs/cloud/features/scheduler/scheduler/secrets.png deleted file mode 100644 index 7873bf8b77..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/secrets.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/see_all_pauses.png b/docs/cloud/features/scheduler/scheduler/see_all_pauses.png deleted file mode 100644 index 549258de9a..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/see_all_pauses.png and /dev/null differ diff --git a/docs/cloud/features/scheduler/scheduler/settings_tab.png b/docs/cloud/features/scheduler/scheduler/settings_tab.png deleted file mode 100644 index 6405f22830..0000000000 Binary files a/docs/cloud/features/scheduler/scheduler/settings_tab.png and /dev/null differ diff --git a/docs/cloud/features/security/security.md b/docs/cloud/features/security/security.md deleted file mode 100644 index 59b2149432..0000000000 --- a/docs/cloud/features/security/security.md +++ /dev/null @@ -1,79 +0,0 @@ -# Security Overview - - -At Tobiko, we treat security as a first-class citizen because we know how valuable your data assets are. Our team follows and executes security best practices across each layer of our product. - -## Tobiko Cloud Standard Deployment - -Our standard Tobiko Cloud deployment consists of several components that are each responsible for different parts of the product. - -Below is a diagram of the components along with their descriptions. - -![tobiko_cloud_standard_deployment](./security/tcloud_standard_deployment.png){ width=80% height=60% style="display: block; margin: 0 auto" } - -- **Scheduler**: Orchestrates schedule cadence and hosts state metadata (code versions, logs, cost) -- **Executor**: Applies code changes and runs SQL queries (actual data processing in SQL Engine) and Python models in proper DAG order. -- **Gateway**: Stores authentication credentials for SQL Engine. Secured through encryption. -- **SQL Engine**: Processes and stores data based on the above instructions within the **customer’s** environment. - -## Tobiko Cloud Hybrid Deployment - -For some customers, our hybrid deployment option is a great fit. It provides a seamless experience with Tobiko Cloud but within your own VPC and infrastructure. - -In a hybrid deployment, Tobiko Cloud does not execute tasks directly with the engine. Instead, it passes tasks to the executors hosted in your environment, which then execute the tasks with the engine. - -Executors are Docker containers that connect to both Tobiko Cloud and your SQL engine. They pull work tasks from the Tobiko Cloud scheduler and execute them with your SQL engine. This is a pull-only mechanism authenticated through an OAuth Client ID/Secret. Whitelist IPs in your network to allow reaching Tobiko Cloud IPs from the executor: 34.28.17.91, 34.136.27.153, 34.136.131.20 - -Below is a diagram of the components along with their description. - -![tobiko_cloud_hybrid_deployment](./security/tcloud_hybrid_deployment.png){ width=80% height=60% style="display: block; margin: 0 auto" } - -- **Scheduler**: Orchestrates schedule cadence and hosts state metadata (code versions, logs, cost). **Never pushes** instructions to executor. -- **Executor**: Appplies code changes and runs SQL queries and Python models in proper DAG order (actual data processing in SQL Engine) -- **Gateway**: Stores authentication credentials for SQL Engine. Secured through your secrets manager or Kubernetes Secrets. -- **SQL Engine**: Processes and stores data based on the above instructions -- **Executor -> Scheduler**: A pull-only mechanism for obtaining work tasks. -- **Helm Chart**: For production environements, we provide a [Helm chart](../scheduler/hybrid_executors_helm.md) that includes robust configurability, secret management, and scaling options. -- **Docker Compose**: For simpler environments or testing, we offer a [Docker Compose setup](../scheduler/hybrid_executors_docker_compose.md) to quickly deploy executors on any machine with Docker. - - - -## Internal Code Practices - -We enforce coding standards throughout Tobiko to write, maintain, and collaborate on code effectively. These practice ensure consistency, maintainability, reliability, and most importantly, trust. - -A few key components of our internal code requirements: - -- We used signed Git commits, required approvers, and signed Docker artifacts. -- Each commit to a `main` branch must be approved by someone other than the author. -- We sign commits and register the key with GitHub ([Github Docs](https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits)). -- Binaries are signed using cosign and OIDC for keyless ([Signing docs](https://docs.sigstore.dev/cosign/signing/overview/)). -- Attestations are created to certify an image, enforced with GCP Binary Authorization ([Attestation docs](https://cloud.google.com/binary-authorization/docs/key-concepts#attestations)). -- Encryption is a key feature of our security posture and is enforced at each stage of access. For example, the state database automatically encrypts all data. Credentials are also securely encrypted and stored. -- We back up each state database nightly and before upgrades. These backups are stored for 14 days. - -## Penetration Testing - -At least once a year, Tobiko engages a third-party security firm to perform a penetration test. This test evaluates our systems by identifying and attempting to exploit known vulnerabilities, focusing on critical external and/or internal assets. A detailed report is available upon request. - - -## Asset and Access Management - -### How do we protect PGP keys? - -If an employee loses their laptop, we don't need to get the old PGP key back because we can invalidate the key directly. - -We use GitHub to sign code commits. At the time the code was committed, the PGP key was valid. When an employee loses their laptop, we will invalidate it, and they will regenerate a new key to use in future commits. The old commits are still valid because the PGP key was valid at the time the commit was made. - -### How do we invalidate PGP keys if someone did steal it and could potentially use it? - -We would revoke access for the GitHub user account associated with the compromised key and not give it access again until the old PGP key is deprecated and a new key issued. - -### If someone steals a laptop, what's our continuity plan in protecting code? - -- All employee devices are monitored for proper encryption and password policies. -- Laptop protection is enforced through file encryption via Vanta. -- Mandatory lock screen after a timeout. -- We follow a formal IT asset disposal procedure to prevent key compromise through improper hardware disposal. -- See above for PGP key protection. -- Binaries are signed using Cosign and OIDC for keyless signing. diff --git a/docs/cloud/features/security/security/tcloud_hybrid_deployment.png b/docs/cloud/features/security/security/tcloud_hybrid_deployment.png deleted file mode 100644 index 6573342f60..0000000000 Binary files a/docs/cloud/features/security/security/tcloud_hybrid_deployment.png and /dev/null differ diff --git a/docs/cloud/features/security/security/tcloud_standard_deployment.png b/docs/cloud/features/security/security/tcloud_standard_deployment.png deleted file mode 100644 index 5b79a3ceba..0000000000 Binary files a/docs/cloud/features/security/security/tcloud_standard_deployment.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on.md b/docs/cloud/features/security/single_sign_on.md deleted file mode 100644 index df2de91735..0000000000 --- a/docs/cloud/features/security/single_sign_on.md +++ /dev/null @@ -1,220 +0,0 @@ -# SSO (Single Sign-On) - -## Overview - -Tobiko Cloud supports single sign-on (SSO) through OpenID and SAML 2.0 providers. - -This makes it easy to provision access to users and simplifies authentication. - - -## Setup & Prerequsites - -You must have an active Tobiko Cloud instance with SSO enabled. Please contact your account team to ensure this is enabled. - -If your Tobiko Cloud instance is setup to require SSO, then you won't need to provide a token in your `tcloud.yml` configuration. - -Below is an example of a `tcloud.yml` configuration: -```yaml -projects: - : - url: - token: # you won't need this anymore - gateway: - extras: - pip_executable: -default_project: -``` - -## Identity Providers - -Tobiko Cloud currently supports OpenID and SAML 2.0. - -### OpenID - -This provider implements [OpenID Connect Core -1.0](https://openid.net/specs/openid-connect-core-1_0.html) in order to allow us -to login with most OAuth2 login providers. - -There are two ways to use OpenID Providers. The first is a -if you use a shared provider like Google, Github, -Microsoft, etc. - -#### Google OAuth - -To enable Google OAuth, all we need is your domain (ex: `yourname@companyname.com`, `companyname.com` is the domain). From here, we can switch SSO on with Google OAuth. - -The login flow will look like the following if you access [cloud.tobikodata.com/auth/login](https://cloud.tobikodata.com/auth/login) directly from your browser. If authenticating through CLI see [here](../security/single_sign_on.md#status) for more details. - -
- -#### Other OAuth Providers - -If you use Okta and other custom OpenID/OAuth2 providers you need to add us -as an Application or Client (terms differ across providers). - -You will need the following information to do this: - -| Name | Purpose | Value | -|--------------|--------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------| -| Redirect URI | Where the OAuth provider should redirect users to after a successfull login. Can also be called "Callback URL" or something similar. | `https://cloud.tobikodata.com/auth/handler/` | -| Logout URL | Where users can go to log out of our system | `https://cloud.tobikodata.com/auth/logout` | -| Web Origin | Which host names our OAuth service uses | `https://cloud.tobikodata.com` | - -Often only a Redirect URI is required, but some providers like the additional -information as well. - -We will need the following information from you once you set us up: - -| Name | Purpose | Example | -|---------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------| -| Client ID | The random ID we use to communicate with their OAuth service | `` | -| Client Secret | The random secret we use to authentication with their OAuth service | `` | -| Open ID Configuration URL | This is the URL we use to gather the rest of their OpenID Configuration. We can often find this on our own and don't need to request it from them, check with the onboarding engineer to make sure we know this. | - -Once we have the above information, we can enable SSO on your account. You will then follow the login flow through your provider such as logging in through Okta. - -### SAML V2.0 - -This provider uses [python3-saml](https://github.com/SAML-Toolkits/python3-saml) -to support SAML V2.0 authentication. - -#### Requirements - -If you are using a SAML provider we need to receive three pieces of -information from you below: - -| Name | Purpose | Example | -|-------------|----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------| -| Entity ID | This is the providers Entity ID | `https://saml.example.com/entityid` | -| SSO URL | This is the URL to use for SSO | `https://mocksaml.com/api/saml/sso` | -| Certificate | The certificate of the SAML Provider in PEM format | [PEM Certificates](https://www.ssl.com/guide/pem-der-crt-and-cer-x-509-encodings-and-conversions/#ftoc-heading-1) | - -We will provide a similar set of information below: - -| Name | Purpose | Example | -|-------------|---------------------------------------|--------------------------------------------------------------| -| Metadata URL| TThis URL contains all of this information | `https://cloud.tobikodata.com/auth/saml/metadata/` | -| Entity ID | This is our Entity ID | `https://cloud.tobikodata.com` | -| SSO URL | This is our HTTP-Redirect Binding URL | `https://cloud.tobikodata.com/auth/saml/callback/` | -| Certificate | Our SAML Certificate | **TBD** | - -All data except the certificate will change per provider. For example if we had -a provider named `acme`: - -- **Metadata URL**: `https://cloud.tobikodata.com/auth/saml/metadata/acme` -- **Entity ID**: `https://cloud.tobikodata.com/auth/saml/metadata/acme` -- **SSO URL**: `https://cloud.tobikodata.com/auth/saml/callback/acme` - -### Okta Integration - -The following instructions will walk you through configuring Okta as your identity provider. -Log into your Okta account. Navigate to Application and create a new app. You will want to select SAML 2.0 - -![okta_setup_1](./single_sign_on/okta_setup_1.png) - -Next, name your app "Tobiko Cloud". You can add the app logo by downloading the image [here](https://avatars.githubusercontent.com/u/113925670?s=200&v=4). - -![okta_setup_2](./single_sign_on/okta_setup_2.png) - -#### SAML Configurations and Settings - -1. We now need to fill in the SAML Settings. Please enter the following values: - - - - **Single sign-on URL**: `https://cloud.tobikodata.com/auth/saml/callback/acme` - - **Audience URI (SP Entity ID)**: `https://cloud.tobikodata.com/auth/saml/metadata/acme` - - ![okta_setup_3](./single_sign_on/okta_setup_3.png) - -2. Fill in the Attribute Statements section with email, firstName, and lastName: These are required to properly map to your users. - - ![okta_setup_4](./single_sign_on/okta_setup_4.png) - -3. Click next and now you are on the last step. Check off the box `Contact app vendor` and hit `Finish`. Now you're all set! - - ![okta_setup_5](./single_sign_on/okta_setup_5.png) - -Here is what you will see if you are accessing Tobiko Cloud via Okta. Click on the Tobiko Cloud icon to be redirected to the application. - -![sso_okta](./single_sign_on/sso_okta.png) - -## Authentication Workflow - -### Status - -You can see what the status of your session is with the `status` command: - -``` bash -tcloud auth status -``` - - -![tcloud_auth](./single_sign_on/tcloud_auth.png) - -### Login - -Run the `login` command to begin the login process: - -``` bash -tcloud auth login -``` - -![tcloud_login](./single_sign_on/tcloud_login.png) - -At this point your system browser should open and allow you to log in. If you are already logged in, this should be a very quick process. It will look like the below: - -![tcloud_auth_browser_login](./single_sign_on/tcloud_auth_browser_login.png) - -![tcloud_auth_browser_success](./single_sign_on/tcloud_auth_browser_success.png) - - - -After you have authenticated, you will be prompted with a success message in your browser and a message telling you that it's safe to close your browser window. Your terminal will then have the following result: - -``` bash -Success! ✅ - -Current Tobiko Cloud SSO session expires in 1439 minutes -``` - - -### Logging Out - -In order to delete your session information you can use the log out command: - -``` bash -tcloud auth logout -# Logged out of Tobiko Cloud - -tcloud auth status -# Not currently authenticated -``` - -![tcloud_logout](./single_sign_on/tcloud_logout.png) - -Otherwise, you will be logged out automatically when the SSO session expires (every 24 hours). - -## OAuth Clients - -Sometimes, you want to grant an external service access to your Tobiko Cloud project. For example, the external service could be the [CICD bot](../../../integrations/github.md) or a [scheduler integration](../scheduler/airflow.md). - -These services take `Client ID` and `Client Secret` credentials. - -!!! Info "One set of credentials per service" - It's best practice to provision a separate set of credentials for each service that you wish to connect to Tobiko Cloud. This gives you the flexibility to revoke credentials for a specific service without affecting access for other services. - -### Provisioning client credentials - -To provision OAuth credentials for a new service, browse to `Settings -> OAuth Clients` in the lefthand navigation menu. - -In the page's Create new Client section, enter a client name and human readable description: - -![Add new OAuth Client](./single_sign_on/oauth_client_1.png) - -Once you click `Save`, the client will be added to the list: - -![OAuth Client List](./single_sign_on/oauth_client_2.png) - -To fetch the Client ID or Client Secret, click `Copy ID` or `Copy Secret`. The values will be copied to the system clipboard. - -Paste these values into an external service's authentication configuration so it can connect to your Tobiko Cloud project. \ No newline at end of file diff --git a/docs/cloud/features/security/single_sign_on/oauth_client_1.png b/docs/cloud/features/security/single_sign_on/oauth_client_1.png deleted file mode 100644 index 81e01c230b..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/oauth_client_1.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/oauth_client_2.png b/docs/cloud/features/security/single_sign_on/oauth_client_2.png deleted file mode 100644 index 53b93580d0..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/oauth_client_2.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/okta_setup_1.png b/docs/cloud/features/security/single_sign_on/okta_setup_1.png deleted file mode 100644 index 79f8a18229..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/okta_setup_1.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/okta_setup_2.png b/docs/cloud/features/security/single_sign_on/okta_setup_2.png deleted file mode 100644 index fe7df25e66..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/okta_setup_2.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/okta_setup_3.png b/docs/cloud/features/security/single_sign_on/okta_setup_3.png deleted file mode 100644 index 583faf50a4..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/okta_setup_3.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/okta_setup_4.png b/docs/cloud/features/security/single_sign_on/okta_setup_4.png deleted file mode 100644 index e11e4111a2..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/okta_setup_4.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/okta_setup_5.png b/docs/cloud/features/security/single_sign_on/okta_setup_5.png deleted file mode 100644 index f4d2a32c27..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/okta_setup_5.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/sso_okta.png b/docs/cloud/features/security/single_sign_on/sso_okta.png deleted file mode 100644 index 7656a91584..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/sso_okta.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/tcloud_auth.png b/docs/cloud/features/security/single_sign_on/tcloud_auth.png deleted file mode 100644 index 18a3d75a78..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/tcloud_auth.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/tcloud_auth_browser_login.png b/docs/cloud/features/security/single_sign_on/tcloud_auth_browser_login.png deleted file mode 100644 index 0d9f483cf9..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/tcloud_auth_browser_login.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/tcloud_auth_browser_success.png b/docs/cloud/features/security/single_sign_on/tcloud_auth_browser_success.png deleted file mode 100644 index 429e178815..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/tcloud_auth_browser_success.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/tcloud_login.png b/docs/cloud/features/security/single_sign_on/tcloud_login.png deleted file mode 100644 index 285328b8cf..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/tcloud_login.png and /dev/null differ diff --git a/docs/cloud/features/security/single_sign_on/tcloud_logout.png b/docs/cloud/features/security/single_sign_on/tcloud_logout.png deleted file mode 100644 index fb581e7973..0000000000 Binary files a/docs/cloud/features/security/single_sign_on/tcloud_logout.png and /dev/null differ diff --git a/docs/cloud/features/upgrade/upgrade-ui-available.png b/docs/cloud/features/upgrade/upgrade-ui-available.png deleted file mode 100644 index a9ea90fa08..0000000000 Binary files a/docs/cloud/features/upgrade/upgrade-ui-available.png and /dev/null differ diff --git a/docs/cloud/features/upgrade/upgrade-ui-custom-version.png b/docs/cloud/features/upgrade/upgrade-ui-custom-version.png deleted file mode 100644 index 810861a741..0000000000 Binary files a/docs/cloud/features/upgrade/upgrade-ui-custom-version.png and /dev/null differ diff --git a/docs/cloud/features/upgrade/upgrade-ui-latest.png b/docs/cloud/features/upgrade/upgrade-ui-latest.png deleted file mode 100644 index c6e34cb534..0000000000 Binary files a/docs/cloud/features/upgrade/upgrade-ui-latest.png and /dev/null differ diff --git a/docs/cloud/features/upgrade/upgrade-ui-progress.png b/docs/cloud/features/upgrade/upgrade-ui-progress.png deleted file mode 100644 index 78282628ec..0000000000 Binary files a/docs/cloud/features/upgrade/upgrade-ui-progress.png and /dev/null differ diff --git a/docs/cloud/features/upgrade/upgrade-ui-up-to-date.png b/docs/cloud/features/upgrade/upgrade-ui-up-to-date.png deleted file mode 100644 index e044ad1d8d..0000000000 Binary files a/docs/cloud/features/upgrade/upgrade-ui-up-to-date.png and /dev/null differ diff --git a/docs/cloud/features/upgrades.md b/docs/cloud/features/upgrades.md deleted file mode 100644 index c6ee00d713..0000000000 --- a/docs/cloud/features/upgrades.md +++ /dev/null @@ -1,75 +0,0 @@ -# Upgrading Tobiko Cloud - -Tobiko regularly releases new versions of Tobiko Cloud that add features and improve reliability. - -This page describes how to upgrade your Tobiko Cloud projects to a newer version. - -## Upgrade availability - -Navigate to `Settings > Upgrade` in the Tobiko Cloud UI to determine whether a new version of Tobiko Cloud is available for your project. - -If your project is already up to date, you will see a grey message: - -![Tobiko Cloud Upgrade Already Up-to-Date](./upgrade/upgrade-ui-up-to-date.png) - -If a new version is available for your project, the page will include a notification box, version, and blue Upgrade Now button: - -![Tobiko Cloud Upgrade Page](./upgrade/upgrade-ui-available.png) - -## Upgrading a project - -On the Upgrade page, you can choose to upgrade to the latest version or specify a custom version. - -!!! info "Upgrade Permissions" - Only users with Tobiko Cloud `Admin` permissions can perform upgrades. - -!!! danger "Upgrade Side Effects" - The upgrade process may take a few minutes to complete. During this time, your Tobiko Cloud project will be unavailable. - - Any in-progress plans and runs will be aborted: - - - Aborted plans will be stopped, and you must **manually** start them again. - - Aborted runs will be automatically resumed shortly after the upgrade completes. - - To avoid unexpected interruptions, please notify your team before starting the upgrade. - -### Latest Version - -Click the **Upgrade Now** button and confirm to begin upgrading your project to the latest version. - -![Tobiko Cloud Upgrade Page](./upgrade/upgrade-ui-latest.png) - -### Custom Version - -We recommend upgrading your Tobiko Cloud project to the latest version, but you may prefer to upgrade to a specific version. - -For example, consider a team that has separate staging and production Tobiko Cloud projects. They upgrade the staging project first, run tests, and only upgrade the production project after verifying that staging works as expected. - -If a new version of Tobiko Cloud is released during this testing period, the latest available version will not match the version tested in staging. The team can specify a custom Tobiko Cloud version to upgrade production to the specific version that was already tested in staging. - -To specify a custom version, select the **Custom** tab on the Upgrade page and enter your desired version in the text box. - -![Tobiko Cloud Upgrade Custom Version](./upgrade/upgrade-ui-custom-version.png) - -Make sure you are entering a valid custom version by: - - - Entering the custom version **without** the leading `v` - - Confirming that the version is valid and later than the current version of the project - -If your custom version is not valid, Tobiko Cloud will display an error message. - -After entering the custom version, click the **Upgrade Now** button and confirm to begin the upgrade process. - -## Upgrade Progress - -Tobiko Cloud will display a progress page while the upgrade is in progress: - -![Tobiko Cloud Upgrade Progress](./upgrade/upgrade-ui-progress.png) - -Once the upgrade is complete, Tobiko Cloud will automatically redirect you back to your upgraded project. - -## Upgrade Support - -If you encounter an issue during the upgrade process, please [report an incident](./incident_reporting.md). Our support team will follow up as soon as possible. - -For the quickest response, we recommend upgrading Monday through Friday between 9am and 5pm PST. \ No newline at end of file diff --git a/docs/cloud/features/xdb_diffing.md b/docs/cloud/features/xdb_diffing.md deleted file mode 100644 index 154589213d..0000000000 --- a/docs/cloud/features/xdb_diffing.md +++ /dev/null @@ -1,144 +0,0 @@ -# Cross-database Table Diffing - -Tobiko Cloud extends SQLMesh's [within-database table diff tool](../../guides/tablediff.md) to support comparison of tables or views across different database systems. - -It provides a method of validating models that can be used along with [evaluating a model](../../guides/models.md#evaluating-a-model) and [testing a model with unit tests](../../guides/testing.md#testing-changes-to-models). - -!!! tip "Learn more about table diffing" - - Learn more about using the table diff tool in the SQLMesh [table diff guide](../../guides/tablediff.md). - -## Diffing tables or views across gateways - -SQLMesh executes a project's models with a single database system, specified as a [gateway](../../guides/connections.md) in the project configuration. - -The within-database table diff tool described above compares tables or environments within such a system. Sometimes, however, you might want to compare tables that reside in two different data systems. - -For example, you might migrate your data transformations from an on-premises SQL engine to a cloud SQL engine while setting up your SQLMesh project. To demonstrate equivalence between the systems you could run the transformations in both and compare the new tables to the old tables. - -The [within-database table diff](../../guides/tablediff.md) tool cannot make those comparisons, for two reasons: - -1. It must join the two tables being diffed, but with two systems no single database engine can access both tables. -2. It assumes that data values can be compared across tables without modification. However, the diff must account for differences in data types across the two SQL engines (e.g., whether timestamps should include time zone information). - -SQLMesh's cross-database table diff tool is built for just this scenario. Its comparison algorithm efficiently diffs tables without moving them from one system to the other and automatically addresses differences in data types. - -## Configuration and syntax - -To diff tables across systems, first configure a [gateway](../../reference/configuration.md#gateway) for each database system in your SQLMesh configuration file. - -This example configures `bigquery` and `snowflake` gateways: - -```yaml linenums="1" -gateways: - bigquery: - connection: - type: bigquery - [other connection parameters] - - snowflake: - connection: - type: snowflake - [other connection parameters] -``` - -Then, specify each table's gateway in the `table_diff` command with this syntax: `[source_gateway]|[source table]:[target_gateway]|[target table]`. - -For example, we could diff the `landing.table` table across `bigquery` and `snowflake` gateways like this: - -```sh -tcloud sqlmesh table_diff 'bigquery|landing.table:snowflake|landing.table' -``` - -This syntax tells SQLMesh to use the cross-database diffing algorithm instead of the normal within-database diffing algorithm. - -After adding gateways to the table names, use `table_diff` as described in the [SQLMesh table diff guide](../../guides/tablediff.md) - the same options apply for specifying the join keys, decimal precision, etc. See `tcloud sqlmesh table_diff --help` for a [full list of options](../../reference/cli.md#table_diff). - -!!! warning - - Cross-database diff works for data objects (tables / views). - - Diffing _models_ is not supported because we do not assume that both the source and target databases are managed by SQLMesh. - -## Example output - -A cross-database diff is broken up into two stages. - -The first stage is a schema diff. This example shows that differences in column name case across the two tables are identified as schema differences: - -```bash -$ tcloud sqlmesh table_diff 'bigquery|sqlmesh_example.full_model:snowflake|sqlmesh_example.full_model' --on item_id --show-sample - -Schema Diff Between 'BIGQUERY|SQLMESH_EXAMPLE.FULL_MODEL' and 'SNOWFLAKE|SQLMESH_EXAMPLE.FULL_MODEL': -├── Added Columns: -│ ├── ITEM_ID (DECIMAL(38, 0)) -│ └── NUM_ORDERS (DECIMAL(38, 0)) -└── Removed Columns: - ├── item_id (BIGINT) - └── num_orders (BIGINT) -Schema has differences; continue comparing rows? [y/n]: -``` - -SQLMesh prompts you before comparing data values across table rows. The prompt provides an opportunity to discontinue the comparison if the schemas are vastly different (potentially indicating a mistake) or you need to exclude columns from the diff because you know they won't match. - -The second stage of the diff is comparing data values across tables. Within each system, SQLMesh divides the data into chunks, evaluates each chunk, and compares the outputs across systems. If a difference is found, it performs a row-level diff on that chunk by reading a sample of mismatched rows from each system. - -This example shows that 2 rows were present in each system but had different values, one row was in Bigquery only, and one row was in Snowflake only: - -```bash -Dividing source dataset into 10 chunks (based on 10947709 total records) -Checking chunks against target dataset -Chunk 1 hash mismatch! -Starting row-level comparison for the range (1 -> 3) -Identifying individual record hashes that don't match -Comparing - -Row Counts: -├── PARTIAL MATCH: 2 rows (66.67%) -├── BIGQUERY ONLY: 1 rows (16.67%) -└── SNOWFLAKE ONLY: 1 rows (16.67%) - -COMMON ROWS column comparison stats: - pct_match -num_orders 0.0 - - -COMMON ROWS sample data differences: -Column: num_orders -┏━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━┓ -┃ item_id ┃ BIGQUERY ┃ SNOWFLAKE ┃ -┡━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━┩ -│ 1 │ 5 │ 7 │ -│ 2 │ 1 │ 2 │ -└─────────┴──────────┴───────────┘ - -BIGQUERY ONLY sample rows: -item_id num_orders - 7 4 - - -SNOWFLAKE ONLY sample rows: -item_id num_orders - 4 6 -``` - -If there are no differences found between chunks, the source and target datasets can be considered equal: - -```bash -Chunk 1 (1094771 rows) matches! -Chunk 2 (1094771 rows) matches! -... -Chunk 10 (1094770 rows) matches! - -All 10947709 records match between 'bigquery|sqlmesh_example.full_model' and 'snowflake|TEST.SQLMESH_EXAMPLE.FULL_MODEL' -``` - -!!! info - - Don't forget to specify the `--show-sample` option if you'd like to see a sample of the actual mismatched data! - - Otherwise, only high level statistics for the mismatched rows will be printed. - -### Supported engines - -Cross-database diffing is supported on all execution engines that [SQLMesh supports](../../integrations/overview.md#execution-engines). \ No newline at end of file diff --git a/docs/cloud/tcloud_getting_started.md b/docs/cloud/tcloud_getting_started.md deleted file mode 100644 index 00ad8a3c25..0000000000 --- a/docs/cloud/tcloud_getting_started.md +++ /dev/null @@ -1,306 +0,0 @@ -# Tobiko Cloud: Getting Started - -Tobiko Cloud is a data platform that extends SQLMesh to make it easy to manage data at scale without the waste. - -We're here to make it easy to get started and feel confident that everything is working as expected. After you've completed the steps below, you'll have achieved the following: - -- Log in to Tobiko Cloud via the browser -- Connect Tobiko Cloud to your local machine via the CLI -- Connect Tobiko Cloud to your data warehouse -- Verify that Tobiko Cloud interacts with your data warehouse as expected - -## Prerequisites - -Before you start, the Tobiko team must complete a few steps. - -Your Tobiko Solutions Architect will: - -- Set up a 1 hour meeting with you to fully onboard -- Request that a new Tobiko Cloud account be created for you (single tenant by default) -- Share a temporary password link that expires in 7 days -- Make sure you save the password in your own password manager - -To prepare for the meeting, ensure you or another attendee have data warehouse administrator rights to: - -- Update warehouse user and object permissions -- Create new users and grant them create/update/delete permissions on a specific database (ex: `database.schema.table`) - -For migrations from SQLMesh (open source) to Tobiko Cloud only: - -- Your Tobiko Solutions Architect will send you a script to extract your current state -- You send that state to the Tobiko Cloud engineers to validate before the migration occurs -- After validation, Tobiko Solutions Architect will schedule a migration date and meeting to move your state to Tobiko Cloud. There will be some downtime if you are running SQLMesh in a production environment. - -> Note: if you must be on VPN to access your data warehouse or have specific security requirements, please let us know and we can discuss options to ensure Tobiko Cloud can securely connect. - -Technical Requirements: - -- Tobiko Cloud requires Python version between 3.9 and 3.12 - -!!! note - If you don't have a supported Python version installed, you can use [uv](https://docs.astral.sh/uv/getting-started/installation/#installation-methods) to install it. - At the time of writing, these are the suggested commands to install uv and Python: - - === "macOS and Linux" - - ```bash - curl -LsSf https://astral.sh/uv/install.sh | sh - ``` - - === "Windows" - - ```powershell - powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" - ``` - - ```bash - uv python install 3.12 - ``` - - -## Log in to Tobiko Cloud - -The first step to setting up Tobiko Cloud is logging in to the web interface: - -1. We will authenticate into your Tobiko Cloud instance. If it is your first time going through this flow, your Solutions Architect will guide you on [how to get SSO configured](https://sqlmesh.readthedocs.io/en/stable/cloud/features/single_sign_on/). Open the url below. - ```bash - https://cloud.tobikodata.com/auth/login - ``` -2. Once logged in, you should see the home page. If you are not redirected, then input your Tobiko Cloud URL in the browser (ex: -https://cloud.tobikodata.com/sqlmesh/tobiko/public-demo/observer/) - - Your view should be empty, but the figure below shows a populated example with Tobiko Cloud running in production: - -

-![tcloud home page](./tcloud_getting_started/tcloud_home_page.png) - -## Install the `tcloud` CLI - -Now we need to configure the `tcloud` command line interface tool. - -First, open a terminal within your terminal/IDE (ex: VSCode). Then follow the following steps to install the `tcloud` CLI: - -1. Create a new project directory, or an existing SQLMesh project, and navigate into it: - - ```bash - mkdir tcloud_project - cd tcloud_project - ``` - -2. Create a new file called `requirements.txt` and add `tcloud` to it: - - ```bash - echo 'tcloud' > requirements.txt - ``` - - > Pypi source: [tcloud](https://pypi.org/project/tcloud/) - - > Note: your Tobiko Solutions Architect will provide you a pinned version of `tcloud` - -3. Create a Python virtual environment in the project directory and install `tcloud`. The following demonstrates how to do this using [uv](https://docs.astral.sh/uv/pip/environments/#creating-a-virtual-environment) ([installation instructions](#prerequisites)): - - ```bash linenums="1" - uv venv --python 3.12 --seed # create a virtual environment inside the project directory - source .venv/bin/activate # activate the virtual environment - uv pip install -r requirements.txt # install the tcloud CLI - which tcloud # verify the tcloud CLI is installed in the venv in the path above - ``` - -!!! note - You may need to run `python3` or `pip3` instead of `python` or `pip`, depending on your python installation. - - If you do not see `tcloud` in the virtual environment path above, you may need to reactivate the venv: - - ```bash - source .venv/bin/activate - which tcloud - # expected path: /Users/person/Desktop/git_repos/tobiko-cloud-demo/.venv/bin/tcloud - ``` - -- Create an alias to ensure use of `tcloud`: - - We recommend using a command line alias to ensure all `sqlmesh` commands run on Tobiko Cloud. - - Set the alias in the terminal by running `alias sqlmesh='tcloud sqlmesh'` in every session. - - Or add this to your shell profile file (ex: `~/.zshrc` or `~/.bashrc`) so you don't have to run the command every time: - - ```bash - alias sqlmesh='tcloud sqlmesh' - ``` - - Note: the rest of the commands in this document will NOT use the alias to avoid confusion with the open source SQLMesh CLI. - -## Connect Tobiko Cloud to Data Warehouse - -Now we're ready to connect your data warehouse to Tobiko Cloud: - -1. Create a new file called `tcloud.yaml` and add the project configuration below, substituting the appropriate values for your project: - - ```yaml - projects: - public-demo: # TODO: update this for the project name in the URL - url: https://cloud.tobikodata.com/sqlmesh/tobiko/public-demo/ # TODO: update for your unique URL - gateway: tobiko_cloud - extras: bigquery,web,github # TODO: update bigquery for your data warehouse - pip_executable: uv pip - default_project: public-demo # TODO: update this for the project name in the URL - ``` - -2. If you are going through the SSO flow then, run the following command: - ``` bash - tcloud auth login - ``` - This will fire off the SSO flow and open a link in your browser to authenticate. - - Once authenticated, you will see the following screen. - - ![tcloud_auth_success](./tcloud_getting_started/tcloud_auth_success.png) - -3. Initialize a new SQLMesh project: - - ```bash - tcloud sqlmesh init - ``` - -4. Update your project's `config.yaml` with your data warehouse connection information: - - Your new SQLMesh project will contain a configuration file named `config.yaml` that includes a DuckDB connection. - - Replace the DuckDB connection information with your data warehouse's information. - - This example shows a Bigquery warehouse connection; see more examples [here](../integrations/overview.md). - - ```yaml linenums="1" - gateways: - tobiko_cloud: # this will use the config in tcloud.yaml for state_connection - scheduler: # TODO: add the connection in the Tobiko Cloud Connections Page with the credentials for your data warehouse - type: cloud - - default_gateway: tobiko_cloud - - model_defaults: - dialect: bigquery # TODO: update for your data warehouse - start: 2024-08-19 # TODO: I recommend updating this to an earlier date representing the historical data you want to backfill - - # make Tobiko Cloud only allow deploying to dev environments, use env var to override in CI/CD - # allow_prod_deploy: {{ env_var('ALLOW_PROD_DEPLOY', 'false') }} - - # enables synchronized deployments to prod when a pull request gets a `/deploy` command or is approved by a required approver - cicd_bot: - type: github - merge_method: squash - skip_pr_backfill: false - enable_deploy_command: true - auto_categorize_changes: - external: full - python: full - sql: full - seed: full - - # preview data for forward only models - plan: - enable_preview: true - - # list of users that are allowed to approve PRs for synchronized deployments - users: - - username: sung_tcloud_demo - github_username: sungchun12 - roles: - - required_approver - ``` - -5. Create a `tcloud` user in the warehouse - - During your onboarding call, we will walk through instructions live to create a new `tcloud` data warehouse user with the necessary permissions. - - SQLMesh will run as this user to create, update, and delete tables in your data warehouse. You can scope the user permissions to a specific database if needed. - - Find additional data warehouse specific instructions here: [Data Warehouse Integrations](../integrations/overview.md). - - -6. Verify the connection between Tobiko Cloud and data warehouse: - - Now we're ready to verify that the connection between Tobiko Cloud and the data warehouse is working properly. - - Run the `info` command from your terminal: - - ```bash - tcloud sqlmesh info - ``` - - It will return output similar to this: - - ```bash - (.venv) ➜ tcloud_project git:(main) ✗ tcloud sqlmesh info - Models: 3 - Macros: 0 - Data warehouse connection succeeded - State backend connection succeeded - ``` - -## Verify SQLMesh functionality - -Let's run a `plan` to verify that SQLMesh is working correctly. - -Run `tcloud sqlmesh plan` in your terminal and enter `y` at the prompt to apply the changes. - -```bash -tcloud sqlmesh plan -``` - -It will return output similar to this: - -```bash -(.venv) ➜ tcloud_project git:(main) ✗ tcloud sqlmesh plan -====================================================================== -Successfully Ran 1 tests against duckdb ----------------------------------------------------------------------- -New environment `prod` will be created from `prod` -Summary of differences against `prod`: -Models: -└── Added: - ├── sqlmesh_example.full_model - ├── sqlmesh_example.incremental_model - └── sqlmesh_example.seed_model -Models needing backfill (missing dates): -├── sqlmesh_example.full_model: 2024-11-24 - 2024-11-24 -├── sqlmesh_example.incremental_model: 2020-01-01 - 2024-11-24 -└── sqlmesh_example.seed_model: 2024-11-24 - 2024-11-24 -Apply - Backfill Tables [y/n]: y - -[1/1] sqlmesh_example.seed_model evaluated in 0.00s -[1/1] sqlmesh_example.incremental_model evaluated in 0.01s -[1/1] sqlmesh_example.full_model evaluated in 0.01s -Evaluating models ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 3/3 • 0:00:00 - - -All model batches have been executed successfully - -Virtually Updating 'prod' ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0% • 0:00:00 - -The target environment has been updated successfully -``` - -Tobiko Cloud and SQLMesh are working! - -## Next steps - -Your `tcloud` project directory should look and feel like this: - -![tcloud project directory](./tcloud_getting_started/tcloud_project_dir.png) - -From here, if you have an existing SQLMesh project, you can copy over your existing models and macros to the `models` and `macros` directories (along with other files as needed). - -You are now fully onboarded with Tobiko Cloud. We recommend reviewing the helpful links below to get familiar with SQLMesh and Tobiko Cloud. - -Here's to data transformation without the waste! - -### Helpful Links -- [Walkthrough Example](../examples/incremental_time_full_walkthrough.md) -- [Quickstart](../quick_start.md) -- [Project Guide and getting setup](../guides/projects.md) -- [Models Guide](../guides/models.md) -- [GitHub Actions CI/CD bot](../integrations/github.md) -- [Testing Models](../concepts/tests.md) -- [SQLMesh Macros](../concepts/macros/sqlmesh_macros.md) \ No newline at end of file diff --git a/docs/cloud/tcloud_getting_started/tcloud_auth_success.png b/docs/cloud/tcloud_getting_started/tcloud_auth_success.png deleted file mode 100644 index 2989d976c8..0000000000 Binary files a/docs/cloud/tcloud_getting_started/tcloud_auth_success.png and /dev/null differ diff --git a/docs/cloud/tcloud_getting_started/tcloud_home_page.png b/docs/cloud/tcloud_getting_started/tcloud_home_page.png deleted file mode 100644 index 03fa0c5a27..0000000000 Binary files a/docs/cloud/tcloud_getting_started/tcloud_home_page.png and /dev/null differ diff --git a/docs/cloud/tcloud_getting_started/tcloud_project_dir.png b/docs/cloud/tcloud_getting_started/tcloud_project_dir.png deleted file mode 100644 index 8b3e2d1033..0000000000 Binary files a/docs/cloud/tcloud_getting_started/tcloud_project_dir.png and /dev/null differ diff --git a/docs/concepts/state.md b/docs/concepts/state.md index 236d2399e7..b73abdd0b6 100644 --- a/docs/concepts/state.md +++ b/docs/concepts/state.md @@ -16,7 +16,7 @@ The state database is how SQLMesh "remembers" what it's done before so it can co The workload against the state database is an OLTP workload that requires transaction support in order to work correctly. - For the best experience, we recommend [Tobiko Cloud](../cloud/cloud_index.md) or databases designed for OLTP workloads such as [PostgreSQL](../integrations/engines/postgres.md). + For the best experience, we recommend databases designed for OLTP workloads such as [PostgreSQL](../integrations/engines/postgres.md). Using your warehouse OLAP database to store state is supported for proof-of-concept projects but is not suitable for production and **will** lead to poor performance and consistency. diff --git a/docs/examples/sqlmesh_cli_crash_course.md b/docs/examples/sqlmesh_cli_crash_course.md index 0bf5780f12..8989270613 100644 --- a/docs/examples/sqlmesh_cli_crash_course.md +++ b/docs/examples/sqlmesh_cli_crash_course.md @@ -35,37 +35,19 @@ You can make changes quickly and confidently through one simple command: `sqlmes Note: If you run this without making any changes, SQLMesh will prompt you to make changes or use the `--include-unmodified` flag like this `sqlmesh plan dev --include-unmodified`. We recommend you make changes first before running this command to avoid creating a lot of noise in your dev environment with extraneous virtual layer views. -=== "SQLMesh" - - ```bash - sqlmesh plan dev - ``` - - ```bash - sqlmesh plan - ``` - - If you want to move faster, you can add the `--auto-apply` flag to skip the manual prompt and apply the plan. You should do this when you're familiar with the plan output, and don't need to see tiny changes in the diff output before applying the plan. - - ```bash - sqlmesh plan --auto-apply - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh plan dev - ``` +```bash +sqlmesh plan dev +``` - ```bash - tcloud sqlmesh plan - ``` +```bash +sqlmesh plan +``` - If you want to move faster, you can add the `--auto-apply` flag to skip the manual prompt and apply the plan. You should do this when you're familiar with the plan output, and don't need to see tiny changes in the diff output before applying the plan. +If you want to move faster, you can add the `--auto-apply` flag to skip the manual prompt and apply the plan. You should do this when you're familiar with the plan output, and don't need to see tiny changes in the diff output before applying the plan. - ```bash - tcloud sqlmesh plan --auto-apply - ``` +```bash +sqlmesh plan --auto-apply +``` ??? "Example Output" I made a breaking change to `incremental_model` and `full_model`. @@ -167,33 +149,17 @@ Run data diff against prod. This is a good way to verify the changes are behavin To make this easier and faster, you can run data diff against all models in the environment impacted by plan changes applied using the `-m '*'` flag example below. No need to specify the model name! Read more about options [here](../guides/tablediff.md). -=== "SQLMesh" - - ```bash - sqlmesh table_diff prod:dev sqlmesh_example.full_model --show-sample - ``` - - ```bash - sqlmesh table_diff : --show-sample - ``` - - ```bash - sqlmesh table_diff prod:dev -m '*' --show-sample - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh table_diff prod:dev sqlmesh_example.full_model --show-sample - ``` +```bash +sqlmesh table_diff prod:dev sqlmesh_example.full_model --show-sample +``` - ```bash - tcloud sqlmesh table_diff : --show-sample - ``` +```bash +sqlmesh table_diff : --show-sample +``` - ```bash - tcloud sqlmesh table_diff prod:dev -m '*' --show-sample - ``` +```bash +sqlmesh table_diff prod:dev -m '*' --show-sample +``` ??? "Example Output" I compare the `prod` and `dev` environments for `sqlmesh_example.full_model`. @@ -243,7 +209,6 @@ To make this easier and faster, you can run data diff against all models in the Schema Diff Between 'PROD' and 'DEV' environments for model 'sqlmesh_example.full_model': └── Schemas match - Row Counts: └── PARTIAL MATCH: 5 rows (100.0%) @@ -252,7 +217,6 @@ To make this easier and faster, you can run data diff against all models in the num_orders 100.0 new_column 0.0 - COMMON ROWS sample data differences: Column: new_column ┏━━━━━━━━━┳━━━━━━┳━━━━━┓ @@ -274,17 +238,9 @@ After you feel confident about the changes, apply them to `prod`. We recommend only applying changes to `prod` [**using CI/CD**](../integrations/github.md) as best practice. For learning purposes and hot fixes, you can manually apply the changes to prod by entering `y` at the prompt. -=== "SQLMesh" - - ```bash - sqlmesh plan - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh plan - ``` +```bash +sqlmesh plan +``` ??? "Example Output" After I feel confident about the changes, I apply them to `prod`. @@ -376,20 +332,12 @@ Sometimes models `SELECT` from tables/views that are outside of SQLMesh's contro These "external model" schemas are used for column level lineage. You can also add audits to test data quality. If an audit fails, SQLMesh prevents downstream models from wastefully running. -=== "SQLMesh" - - ```bash - sqlmesh create_external_models - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh create_external_models - ``` +```bash +sqlmesh create_external_models +``` ??? "Example Output" - Note: this is an example from a separate Tobiko Cloud project, so you can't follow along in the Github repo. + Note: this example comes from a separate project, so the model names differ from the ones in this walkthrough. - Generated external models from the `bigquery-public-data`.`ga4_obfuscated_sample_ecommerce`.`events_20210131` table parsed in the model's SQL. - Added an audit to the external model to ensure `event_date` is not NULL. @@ -516,36 +464,19 @@ You can ensure business logic is working as expected by running your models agai Unit tests run *before* a plan is applied automatically. This is great for testing complex business logic (ex: `CASE WHEN` conditions) *before* you backfill data. No need to write them manually, either! -=== "SQLMesh" - - Create a unit test based on 5 rows from the upstream `sqlmesh_example.incremental_model`. - - ```bash - sqlmesh create_test sqlmesh_example.full_model \ - --query sqlmesh_example.incremental_model \ - "select * from sqlmesh_example.incremental_model limit 5" - ``` - - ```bash - sqlmesh create_test \ - --query \ - "select * from limit 5" - ``` - - -=== "Tobiko Cloud" +Create a unit test based on 5 rows from the upstream `sqlmesh_example.incremental_model`. - ```bash - tcloud sqlmesh create_test demo.stg_payments \ - --query demo.seed_raw_payments \ - "select * from demo.seed_raw_payments limit 5" - ``` +```bash +sqlmesh create_test sqlmesh_example.full_model \ + --query sqlmesh_example.incremental_model \ + "select * from sqlmesh_example.incremental_model limit 5" +``` - ```bash - tcloud sqlmesh create_test \ - --query \ - "select * from limit 5" - ``` +```bash +sqlmesh create_test \ + --query \ + "select * from limit 5" +``` ??? "Example Output" @@ -633,27 +564,14 @@ You can run live queries directly from the CLI. This is great to validate the lo Pro tip: run this after `sqlmesh table_diff` to get a full picture of your changes. -=== "SQLMesh" - - ```bash - sqlmesh fetchdf "select * from sqlmesh_example__dev.full_model limit 5" - ``` - - ```bash - # construct arbitrary query - sqlmesh fetchdf "select * from . limit 5" # double underscore in schema name is important. Not needed for prod. - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh fetchdf "select * from sqlmesh_example__dev.full_model limit 5" - ``` +```bash +sqlmesh fetchdf "select * from sqlmesh_example__dev.full_model limit 5" +``` - ```bash - # construct arbitrary query - tcloud sqlmesh fetchdf "select * from . limit 5" # double underscore in schema name is important. Not needed for prod. - ``` +```bash +# construct arbitrary query +sqlmesh fetchdf "select * from . limit 5" # double underscore in schema name is important. Not needed for prod. +``` ??? "Example Output" ```bash @@ -671,17 +589,9 @@ If enabled, linting runs automatically during development. The linting rules can This is a great way to catch SQL issues before wasting runtime in your data warehouse. It runs automatically, or you can run it manually to proactively check for any issues. -=== "SQLMesh" - - ```bash - sqlmesh lint - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh lint - ``` +```bash +sqlmesh lint +``` ??? "Example Output" @@ -738,33 +648,17 @@ You'll use these commands as needed to validate that your changes are behaving a This is a great way to verify that your model's SQL is looking as expected before applying the changes. It is especially important if you're migrating from one query engine to another (ex: postgres to databricks). -=== "SQLMesh" - - ```bash - sqlmesh render sqlmesh_example.incremental_model - ``` - - ```bash - sqlmesh render sqlmesh_example.incremental_model --dialect databricks - ``` - - ```bash - sqlmesh render --dialect - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh render sqlmesh_example.incremental_model - ``` +```bash +sqlmesh render sqlmesh_example.incremental_model +``` - ```bash - tcloud sqlmesh render sqlmesh_example.incremental_model --dialect databricks - ``` +```bash +sqlmesh render sqlmesh_example.incremental_model --dialect databricks +``` - ```bash - tcloud sqlmesh render --dialect - ``` +```bash +sqlmesh render --dialect +``` ??? "Example Output" @@ -828,25 +722,13 @@ This is a great way to verify that your model's SQL is looking as expected befor Verbose mode lets you see detailed operations in the physical and virtual layers. This is useful to see exactly what SQLMesh is doing every step. After, you can copy/paste the fully qualified table/view name into your query console to validate the data (if that's your preference). -=== "SQLMesh" - - ```bash - sqlmesh plan dev -vv - ``` - - ```bash - sqlmesh plan -vv - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh plan dev -vv - ``` +```bash +sqlmesh plan dev -vv +``` - ```bash - tcloud sqlmesh plan -vv - ``` +```bash +sqlmesh plan -vv +``` ??? "Example Output" @@ -969,31 +851,18 @@ Example scenario and model DAG: 1. `stg_transactions` runs hourly 2. `fct_transcations` runs at 12am UTC if `stg_transactions` is fresh and updated since its most recent hour interval -3. If `stg_transactions` failed from 11pm-11:59:59pm, it will prevent `fct_transcations` from running and put it in a `pending` state -4. If `fct_transactions` is `pending` past its full interval (1 full day), it will be put in a `late` state -5. Once `stg_transactions` runs successfully either from a retry or a fix from a pull request, `fct_transactions` will rerun from the point of failure. This is true even if `fct_transactions` has been `late` for several days. +3. If `stg_transactions` failed from 11pm-11:59:59pm, it will prevent `fct_transcations` from running until its upstream is ready +4. Once `stg_transactions` runs successfully either from a retry or a fix from a pull request, `fct_transactions` will rerun from the point of failure. This holds while the failed interval is inside the search window: a model without an explicit `start` looks back only to the previous cron boundary, so set a `start` on the upstream model if older failures must be recovered automatically. -Note: `pending` and `late` states are only supported in Tobiko Cloud. In SQLMesh, it will only understand if the model is ready or not ready to execute without mention of these states. - -If you're using open source SQLMesh, you can run this command in your orchestrator (ex: Dagster, GitHub Actions, etc.) every 5 minutes or at your lowest model cron schedule (ex: every 1 hour). Don't worry! It will only run executions that need to be run. - -If you're using Tobiko Cloud, this configures automatically without additional configuration. +Run this command in your orchestrator (ex: Dagster, GitHub Actions, etc.) every 5 minutes or at your lowest model cron schedule (ex: every 1 hour). Don't worry! It will only run executions that need to be run. ### Run Models This command is intended be run on a schedule. It will skip the physical and virtual layer updates and simply execute the model batches. -=== "SQLMesh" - - ```bash - sqlmesh run - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh run - ``` +```bash +sqlmesh run +``` ??? "Example Output" @@ -1043,17 +912,9 @@ You can run models that execute backfills each time you invoke a `run`, whether This only applies to incremental models that have `allow_partials` set to `true`. This is generally not recommended for production environments as you risk shipping incomplete data which will be perceived as broken data. -=== "SQLMesh" - - ```bash - sqlmesh run --ignore-cron - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh run --ignore-cron - ``` +```bash +sqlmesh run --ignore-cron +``` ??? "Example Output" @@ -1109,25 +970,13 @@ When you modify a forward-only model and apply the plan to `prod` after the dev If you want to see a full walkthrough, [go here](incremental_time_full_walkthrough.md). -=== "SQLMesh" - - ```bash - sqlmesh plan dev --forward-only - ``` - - ```bash - sqlmesh plan --forward-only - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh plan dev --forward-only - ``` +```bash +sqlmesh plan dev --forward-only +``` - ```bash - tcloud sqlmesh plan --forward-only - ``` +```bash +sqlmesh plan --forward-only +``` ??? "Example Output" @@ -1239,19 +1088,10 @@ If you want to see a full walkthrough, [go here](incremental_time_full_walkthrou ✔ Virtual layer updated ``` - ## Miscellaneous If you notice you have a lot of old development schemas/data, you can clean them up with the following command. This process runs automatically during the `sqlmesh run` command. This defaults to deleting data older than 7 days. -=== "SQLMesh" - - ```bash - sqlmesh janitor - ``` - -=== "Tobiko Cloud" - - ```bash - tcloud sqlmesh janitor - ``` \ No newline at end of file +```bash +sqlmesh janitor +``` diff --git a/docs/faq/faq.md b/docs/faq/faq.md index accd41a85f..17d17198f9 100644 --- a/docs/faq/faq.md +++ b/docs/faq/faq.md @@ -167,17 +167,17 @@ ## Scheduling ??? question "How do I run SQLMesh models on a schedule?" - You can run SQLMesh models using the [built-in scheduler](../guides/scheduling.md#built-in-scheduler) or using [Tobiko Cloud](../cloud/features/scheduler/scheduler.md) + You can run SQLMesh models using the [built-in scheduler](../guides/scheduling.md#built-in-scheduler) - Both approaches use each model's `cron` parameter to determine when the model should run - see the [question about `cron` above](#cron-question) for more information. + It uses each model's `cron` parameter to determine when the model should run - see the [question about `cron` above](#cron-question) for more information. The built-in scheduler works by executing the command `sqlmesh run`. A sensible approach to running on your project on a schedule is to use Linux’s `cron` tool to execute `sqlmesh run` on a cadence at least as frequent as your briefest SQLMesh model `cron` parameter. For example, if your most frequent model’s `cron` is hour, the `cron` tool should execute `sqlmesh run` at least every hour. ??? question "How do I use SQLMesh with Airflow?" - Tobiko Cloud offers first-class support for Airflow - learn more [here](../cloud/features/scheduler/airflow.md) + SQLMesh's built-in scheduler runs `sqlmesh run` on a cadence, so any orchestrator that can run a command on a schedule can drive it. Point an Airflow task at `sqlmesh run` and schedule it at least as often as your briefest model `cron`, as described in the [scheduling guide](../guides/scheduling.md#built-in-scheduler). ??? question "How do I use SQLMesh with Dagster?" - Tobiko Cloud offers first-class support for Dagster - learn more [here](../cloud/features/scheduler/dagster.md) + SQLMesh's built-in scheduler runs `sqlmesh run` on a cadence, so any orchestrator that can run a command on a schedule can drive it. Point a Dagster op at `sqlmesh run` and schedule it at least as often as your briefest model `cron`, as described in the [scheduling guide](../guides/scheduling.md#built-in-scheduler). ## Warnings and Errors @@ -267,7 +267,6 @@ ??? question "How does Tobiko Data make money?" - - Tobiko Cloud: learn more [here](https://tobikodata.com/product.html) - Enterprise Github Actions CI/CD App (in development) - Advanced version of [open source CI/CD bot](../integrations/github.md) - Providing hands-on support for companies' SQLMesh projects diff --git a/docs/guides/configuration.md b/docs/guides/configuration.md index 46c6a5da2d..58044082f7 100644 --- a/docs/guides/configuration.md +++ b/docs/guides/configuration.md @@ -958,7 +958,7 @@ Unlike data transformations, storing state information requires database transac !!! note Using the same connection for data warehouse and state is not recommended for production deployments of SQLMesh. -The easiest and most reliable way to manage your state connection is for [Tobiko Cloud](https://tobikodata.com/product.html) to do it for you. If you'd rather handle it yourself, we list recommended and unsupported state engines below. +We list recommended and unsupported state engines below. Recommended state engines for production deployments: @@ -1540,7 +1540,7 @@ Example enabling debug mode for the CLI command `sqlmesh plan`: ### Python library dependencies SQLMesh enables you to write Python models and macros which depend on third-party libraries. To ensure each run / evaluation uses the same version, you can specify versions in a `sqlmesh-requirements.lock` file in the root of your project. -The sqlmesh.lock must be of the format `dep==version`. Only `==` is supported. +The lock file must be of the format `dep==version`. Only `==` is supported. For example: @@ -1549,7 +1549,7 @@ numpy==2.1.2 pandas==2.2.3 ``` -This feature is only available in [Tobiko Cloud](https://tobikodata.com/product.html). +SQLMesh reads the lock file when it loads your project and records the pinned versions on the environment, so a change to the file shows up as a plan change. #### Excluding dependencies diff --git a/docs/guides/scheduling.md b/docs/guides/scheduling.md index 80d58db366..d0aea48278 100644 --- a/docs/guides/scheduling.md +++ b/docs/guides/scheduling.md @@ -1,9 +1,6 @@ # Scheduling guide -SQLMesh currently offers two ways of scheduling model evaluation: - -* Using [SQLMesh's built-in scheduler](#built-in-scheduler) -* Using [Tobiko Cloud](../cloud/features/scheduler/scheduler.md) +SQLMesh schedules model evaluation with its [built-in scheduler](#built-in-scheduler) ## Built-in scheduler diff --git a/docs/guides/tablediff.md b/docs/guides/tablediff.md index 6d649b3e93..6a86d35dfb 100644 --- a/docs/guides/tablediff.md +++ b/docs/guides/tablediff.md @@ -212,9 +212,9 @@ The output matches, with the exception of the column labels in the `COMMON ROWS ## Diffing tables or views across gateways -!!! info "Tobiko Cloud Feature" +!!! info "Not available in open-source SQLMesh" - Cross-database table diffing is available in [Tobiko Cloud](../cloud/features/xdb_diffing.md). + The `table_diff` command compares tables and environments within a single gateway. Cross-database table diffing, which compares tables that live in two different data systems, is not part of open-source SQLMesh. SQLMesh executes a project's models with a single database system, specified as a [gateway](../guides/connections.md#overview) in the project configuration. @@ -227,6 +227,4 @@ The [within-database table diff](#diffing-models-across-environments) tool canno 1. It must join the two tables being diffed, but with two systems no single database engine can access both tables. 2. It assumes that data values can be compared across tables without modification. If the systems use different SQL engines, however, the diff must account for differences in the engines' data types (e.g., whether timestamps should include time zone information). -SQLMesh's cross-database table diff tool is built for just this scenario. Its comparison algorithm efficiently diffs tables without moving them from one system to the other and automatically addresses differences in data types. - -Learn more about cross-database table diffing in our [Tobiko Cloud docs](../cloud/features/xdb_diffing.md). +If you need a diff across data systems, materialize both sides into one gateway first, then run `table_diff` against the two tables there. diff --git a/docs/guides/vscode.md b/docs/guides/vscode.md index 5ef3cd71ce..bc6840e975 100644 --- a/docs/guides/vscode.md +++ b/docs/guides/vscode.md @@ -42,26 +42,12 @@ Next, activate the virtual environment: source .venv/bin/activate ``` -#### Open-source SQLMesh - -If you are using open-source SQLMesh, install SQLMesh with the `lsp` extra that enables the VSCode extension (learn more about SQLMesh extras [here](../installation.md#install-extras)): +Then install SQLMesh with the `lsp` extra that enables the VSCode extension (learn more about SQLMesh extras [here](../installation.md#install-extras)): ```bash pip install 'sqlmesh[lsp]' ``` -#### Tobiko Cloud - -If you are using Tobiko Cloud, the `tcloud` library will install SQLMesh for you. - -First, follow the [Python setup](#python-setup) steps above to create and activate a Python environment. Next, install `tcloud`: - -```bash -pip install tcloud # always make sure to install the latest version of tcloud -``` - -Finally, add the `lsp` extra to your `tcloud.yml` configuration file, as described [here](../cloud/tcloud_getting_started.md#connect-tobiko-cloud-to-data-warehouse). - ### VSCode Python interpreter A Python virtual environment contains its own copy of Python (the "Python interpreter"). @@ -89,7 +75,6 @@ SQLMesh's VSCode extension makes it easy to edit and understand your SQLMesh pro - Inline SQLMesh linter diagnostics - VSCode commands - Format SQLMesh project files - - Sign in/out of Tobiko Cloud (Tobiko Cloud users only) ### Lineage @@ -136,8 +121,6 @@ SQLMesh's model formatting tool is integrated directly into the editor, so it's The SQLMesh VSCode extension provides the following commands in the VSCode command palette: - `Format SQLMesh project` -- `Sign in to Tobiko Cloud` (Tobiko Cloud users only) -- `Sign out of Tobiko Cloud` (Tobiko Cloud users only) ## Troubleshooting @@ -193,14 +176,12 @@ If you have checked the VSCode `sqlmesh` output channel and the extension is sti When installing SQLMesh, some dependencies required by the VSCode extension are not installed unless you specify the `lsp` "extra". -If you are using open-source SQLMesh, install the `lsp` extra by running this command in your terminal: +Install the `lsp` extra by running this command in your terminal: ```bash pip install 'sqlmesh[lsp]' ``` -If you are using Tobiko Cloud, make sure `lsp` is included in the list of extras specified in the [`tcloud.yaml` configuration file](../cloud/tcloud_getting_started.md#connect-tobiko-cloud-to-data-warehouse). - ### SQLMesh compatibility While the SQLMesh VSCode extension is in preview and the APIs to the underlying SQLMesh version are not stable, we do not guarantee compatibility between the extension and the SQLMesh version you are using. diff --git a/docs/integrations/engines/duckdb.md b/docs/integrations/engines/duckdb.md index aca58615b3..9b6b19de3f 100644 --- a/docs/integrations/engines/duckdb.md +++ b/docs/integrations/engines/duckdb.md @@ -3,7 +3,7 @@ !!! warning "DuckDB state connection limitations" DuckDB is a [single user](https://duckdb.org/docs/connect/concurrency.html#writing-to-duckdb-from-multiple-processes) database. Using it for a state connection in your SQLMesh project limits you to a single workstation. This means your project cannot be shared amongst your team members or your CI/CD infrastructure. This is usually fine for proof of concept or test projects but it will not scale to production usage. - For production projects, use [Tobiko Cloud](https://tobikodata.com/product.html) or a more robust state database such as [Postgres](./postgres.md). + For production projects, use a more robust state database such as [Postgres](./postgres.md). ## Local/Built-in Scheduler **Engine Adapter Type**: `duckdb` diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 44daab1f86..1336a63c0b 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -41,13 +41,3 @@ :root { --md-primary-fg-color: #3C64E2; } - -.md-tabs__item:last-child a::before { - content: ""; - background: transparent url("tobiko-logo.svg") center left no-repeat; - background-size: contain; - width: 18px; - height: 18px; - display: inline-block; - margin-bottom: -4px; -} \ No newline at end of file diff --git a/docs/stylesheets/tobiko-logo.svg b/docs/stylesheets/tobiko-logo.svg deleted file mode 100644 index 3dbc9a6194..0000000000 --- a/docs/stylesheets/tobiko-logo.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/mkdocs.yml b/mkdocs.yml index 3ff165d009..02c6cc887c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -110,38 +110,6 @@ nav: - Configuration: - reference/configuration.md - reference/model_configuration.md - - Tobiko Cloud: # NOTE: if this item is no longer last, need to update extra.css to adjust logo positioning - - "Overview": cloud/cloud_index.md - - "Getting Started": cloud/tcloud_getting_started.md - - Cloud Features: - - "Alerts & Notifications": cloud/features/alerts_notifications.md - - cloud/features/data_catalog.md - - cloud/features/debugger_view.md - - Maintenance: - - cloud/features/incident_reporting.md - - cloud/features/upgrades.md - - Scheduler: - - "Cloud": cloud/features/scheduler/scheduler.md - - "Cloud Hybrid Deployments": - - "Overview": cloud/features/scheduler/hybrid_executors_overview.md - - "Helm Chart example": cloud/features/scheduler/hybrid_executors_helm.md - - "Docker Compose example": cloud/features/scheduler/hybrid_executors_docker_compose.md - - cloud/features/scheduler/airflow.md - - cloud/features/scheduler/dagster.md - - Security: - - cloud/features/security/security.md - - cloud/features/security/single_sign_on.md - - Tools: - - cloud/features/xdb_diffing.md -# - Observability: -# - cloud/features/observability/overview.md -# - cloud/features/observability/model_freshness.md -# - cloud/features/observability/prod_environment.md -# - cloud/features/observability/development_environment.md -# - cloud/features/observability/plan.md -# - cloud/features/observability/run.md -# - cloud/features/observability/model.md -# - "Measures & Dashboards": cloud/features/observability/measures_dashboards.md theme: name: material logo: _readthedocs/html/sqlmesh.png