Skip to content

Commit

Permalink
Merge pull request #130 from data-catering/blazer
Browse files Browse the repository at this point in the history
Add in blazer
  • Loading branch information
pflooky authored Oct 6, 2024
2 parents 832feb3 + 430bbda commit a8bad0c
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ POSTGRES_USER=my-user POSTGRES_PASSWORD=my-password ./run.sh postgres
| Data Catalog | unitycatalog ||
| Data Collector | fluentd ||
| Data Collector | logstash ||
| Data Visualisation | blazer ||
| Data Visualisation | evidence ||
| Data Visualisation | metabase ||
| Data Visualisation | redash ||
Expand Down
69 changes: 69 additions & 0 deletions data/blazer/blazer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# see https://github.com/ankane/blazer for more info

data_sources:
main:
url: <%= ENV["DATABASE_URL"] %>

# statement timeout, in seconds
# none by default
# timeout: 15

# caching settings
# can greatly improve speed
# off by default
# cache:
# mode: slow # or all
# expires_in: 60 # min
# slow_threshold: 15 # sec, only used in slow mode

# wrap queries in a transaction for safety
# not necessary if you use a read-only user
# true by default
# use_transaction: false

smart_variables:
# zone_id: "SELECT id, name FROM zones ORDER BY name ASC"
# period: ["day", "week", "month"]
# status: {0: "Active", 1: "Archived"}

linked_columns:
# user_id: "/admin/users/{value}"

smart_columns:
# user_id: "SELECT id, name FROM users WHERE id IN {value}"

customer:
url: <%= ENV["DATABASE_CUSTOMER_URL"] %>
# create audits
audit: true

# change the time zone
# time_zone: "Pacific Time (US & Canada)"

# email to send checks from
# from_email: [email protected]

# webhook for Slack
# slack_webhook_url: <%= ENV["BLAZER_SLACK_WEBHOOK_URL"] %>

check_schedules:
- "1 day"
- "1 hour"
- "5 minutes"

# enable anomaly detection
# note: with trend, time series are sent to https://trendapi.org
# anomaly_checks: prophet / trend / anomaly_detection

# enable forecasting
# note: with trend, time series are sent to https://trendapi.org
# forecasting: prophet / trend

# enable map
# mapbox_access_token: <%= ENV["MAPBOX_ACCESS_TOKEN"] %>

# enable uploads
# uploads:
# url: <%= ENV["BLAZER_UPLOADS_URL"] %>
# schema: uploads
# data_source: main
1 change: 1 addition & 0 deletions data/postgres/data/my_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ CREATE DATABASE superset;
CREATE DATABASE superset_examples;
CREATE DATABASE metabase;
CREATE DATABASE redash;
CREATE DATABASE blazer;
14 changes: 14 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,20 @@ services:
image: "amundsendev/amundsen-search:${AMUNDSEN_SEARCH_VERSION:-4.2.0}"
ports:
- "5001:5000"
blazer:
command: sh -c "rails db:migrate && puma -C /app/config/puma.rb"
container_name: blazer
depends_on:
postgres:
condition: service_completed_successfully
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/blazer
- DATABASE_CUSTOMER_URL=postgres://postgres:postgres@postgres:5432/customer
image: "ankane/blazer:${BLAZER_VERSION:-v3.0.4}"
ports:
- "8080:8080"
volumes:
- "./data/blazer/blazer.yml:/app/config/blazer.yml"
cassandra:
command: [-c, /tmp/scripts/init.sh]
container_name: cassandra-data
Expand Down

0 comments on commit a8bad0c

Please sign in to comment.