-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http sensor provider #29
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# What is BI-DAGs | ||
|
||
BI-DAGs is a component of the monitoring project developed for the RCS-SIS group. It plays an important role in tracking key performance indicators (KPIs) to monitor progress and analyze the current situation. | ||
|
||
BI-DAGs operates as an Apache Airflow instance dedicated to managing data harvesting from various sources including CDS, ILS, and others. The harvested data is then processed and pushed into a PostgreSQL database. Subsequently, Apache Superset retrieves this data to present it in the desired format for analysis and reporting. | ||
|
||
# BI-DAGs Setup Guide | ||
|
||
This README provides a step-by-step guide on setting up your environment for running BI-DAGs with Airflow. | ||
|
@@ -66,7 +72,7 @@ airflow standalone | |
If you're using Docker to manage your Postgres database, start the service. | ||
|
||
```sh | ||
docker-compose start | ||
docker-compose -f docker-compose.standalone.yaml up | ||
``` | ||
|
||
### 7. Add Airflow Connections via UI | ||
|
@@ -87,6 +93,41 @@ More information, how to manage db connections can be found [here](https://airfl | |
|
||
After completing these steps, your environment should be set up and ready for running BI-DAGs with Airflow. | ||
|
||
## Running with Docker Compose | ||
|
||
1. To start the services using Docker Compose, simply run: | ||
|
||
```sh | ||
docker-compose up | ||
``` | ||
|
||
All the required environment variables are already configured in the `docker-compose.yml` file. | ||
|
||
### Creating a User in Airflow | ||
|
||
Before logging into the Airflow UI, you need to create a user. Follow these steps to create a user in the Airflow web container from the command line: | ||
|
||
1. Ensure the Airflow services are running. | ||
2. Access the Airflow web container by running: | ||
|
||
```sh | ||
docker-compose exec airflow-web bash | ||
``` | ||
|
||
3. Create a new Airflow user with the following command (replace `<username>`, `<password>`, `<firstname>`, `<lastname>`, and `<email>` with your desired values): | ||
|
||
```sh | ||
airflow users create --username <username> --password <password> --firstname <firstname> --lastname <lastname> --role Admin --email <email> | ||
``` | ||
|
||
Example: | ||
|
||
```sh | ||
airflow users create --username admin --password admin --firstname Admin --lastname User --role Admin --email [email protected] | ||
``` | ||
|
||
After creating the user, you can log in to the Airflow UI with the credentials you specified. | ||
|
||
## Database Migrations | ||
|
||
By following these guidelines, you can seamlessly manage and track database migrations within your Airflow environment. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BEFORE DEPLOYING, PLEASE MAKE SURE THAT THE ENV VAR FOR CONNECTION IS EXPORTED IN HELM CHART