Skip to content

Commit

Permalink
Merge pull request #4 from gnosischain/first_dbt_models
Browse files Browse the repository at this point in the history
First dbt models
  • Loading branch information
riccardo-gnosis authored Nov 4, 2024
2 parents 4a0080c + 02a41ce commit 47c01d3
Show file tree
Hide file tree
Showing 53 changed files with 3,648 additions and 528 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# environments
.env
**/.env
.user.yml

# vscode config
Expand Down
2 changes: 1 addition & 1 deletion cron.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

dbt run -s execution_power
dbt run



2 changes: 1 addition & 1 deletion cron_preview.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

dbt run -s execution_power
dbt run



16 changes: 16 additions & 0 deletions grafana/grafana_dashboards.sh
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
Loading

0 comments on commit 47c01d3

Please sign in to comment.