Multi-Cloud Deployment (#1)

* Introduce instances list to scale bots and add config templating

* Use env var for wallet address if not provided as path param

* Expose SOL price as metric

* Update docs

* Add auto-swap

* Add Panopticon

* implement backoff stategy in autoswap

* Add retry logic for withdraw and swap

* bump drift-sdk, update ctl.sh and docs

* Update filler bot, add tx metrics

* Add user-metrics

* Update build and dashboard
This commit is contained in:
Patrick Balsiger
2024-04-28 07:25:08 +02:00
committed by GitHub
parent 6bd2c3367b
commit f05fac48ca
58 changed files with 9783 additions and 319 deletions

View File

@@ -0,0 +1,3 @@
GF_SECURITY_ADMIN_USER=${grafana_user}
GF_SECURITY_ADMIN_PASSWORD=${grafana_password}
PROMETHEUS_PASSWORD=${prometheus_password}

View File

@@ -0,0 +1,29 @@
global:
scrape_interval: 60s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: []
scheme: http
timeout: 10s
api_version: v1
scrape_configs:
- job_name: 'federate'
scrape_interval: 60s
honor_labels: true
metrics_path: '/federate'
basic_auth:
username: '${user}'
password: '${password}'
params:
'match[]':
- '{instance="node-exporter:9100"}'
- '{__name__=~"up:.*"}'
static_configs:
${targets}

View File

@@ -0,0 +1,42 @@
global:
scrape_interval: 60s
scrape_timeout: 10s
evaluation_interval: 15s
alerting:
alertmanagers:
- static_configs:
- targets: []
scheme: http
timeout: 10s
api_version: v1
scrape_configs:
- job_name: node
static_configs:
- targets: ['node-exporter:9100']
- job_name: keeper
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- keeper:9464
- job_name: wallet
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics/${wallet_address}
scheme: http
static_configs:
- targets:
- wallet-tracker:3000
- job_name: user
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- user-metrics:3000

View File

@@ -0,0 +1,2 @@
basic_auth_users:
prom: ${prometheus_password_bcrypt}