-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from gnosischain/first_dbt_models
First dbt models
- Loading branch information
Showing
53 changed files
with
3,648 additions
and
528 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
|
||
# environments | ||
.env | ||
**/.env | ||
.user.yml | ||
|
||
# vscode config | ||
|
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,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
dbt run -s execution_power | ||
dbt run | ||
|
||
|
||
|
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,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
dbt run -s execution_power | ||
dbt run | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Load environment variables from .env file | ||
source .env | ||
|
||
# Create a folder to store your backups | ||
BACKUP_DIR="./grafana_dashboards_backup" | ||
mkdir -p $BACKUP_DIR | ||
|
||
# Get the list of all dashboards | ||
curl -H "Authorization: Bearer $API_TOKEN" "$GRAFANA_URL/api/search?query=&" | jq '.[] | .uid' | sed 's/"//g' | while read dashboard_uid | ||
do | ||
# Download the dashboard by UID | ||
echo "Downloading dashboard UID: $dashboard_uid" | ||
curl -H "Authorization: Bearer $API_TOKEN" "$GRAFANA_URL/api/dashboards/uid/$dashboard_uid" | jq '.' > "$BACKUP_DIR/$dashboard_uid.json" | ||
done |
Oops, something went wrong.