Quick Start Guide¶
Start-up¶
After completing the installation, to start Orbit Team:
- Validate that you are in the same Python environment that was used to run the installation script.
- Run
orbit-server start
.
Success
Validate that the GUI is running by going to the GUI. This is your centralized location to track all of your monitors.
Hello Orbit¶
Once Orbit is started up, follow the next few steps to launch your first Orbit Monitor:
- Navigate to where you'd like to create your Orbit project directory (e.g. your workspace directory).
- Ensure that you are in the environment that was used during the client installation.
- Create a directory called
hello-orbit
. - Navigate into the newly created
hello-orbit
directory. - Create a Python file called
hello-orbit.py
- Copy and paste the following code into
hello-orbit.py
:import foundations print("hello orbit")
- Run
foundations monitor create . hello-orbit.py
to create a monitor within thehello-orbit
project. - Head to the GUI to see your project.
- On the GUI, click on the
hello-orbit
project. It should lead you to theMonitor Schedules
tab.
- In the
Monitor Schedules
tab, you should see a monitor calledhello-orbit
. Clicking on the monitor will show you details about this monitor.
- Under
Schedule Details
, set the schedule to run the monitor (e.g. every minute at the 10th second).
- Once you click
Save
, the Monitor's status will becomeActive
and times inNext Run
will get updated.
- Click on the refresh button () next to
Monitor Jobs
to see a list of jobs run at the scheduled times. - When a job is being executed,
Status
will show a blinking green circle. - When a job is completed,
Status
will show a solid green circle. Click the button on the right hand side of the table row () to view the logs of the job. In our case, a modal will pop up and display the messagehello orbit
. - You can pause the Monitor at any time by clicking on the pause button ( ). Make sure that you do this to prevent jobs being run on your system forever!
You just created your first Orbit Monitor and scheduled it to run periodically. The Monitor is created from our hello-orbit.py
script, which doesn't do much except print out "hello orbit" every time it is run.
Now, let's create a Data Contract against a dataset and see how Orbit can help monitor data quality issues.
Stopping Orbit¶
To stop Orbit Server:
- Validate that you are in the same Python environment that was used to run the installation script.
- Run
orbit-server stop
.