-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'richard/quickstart' into 'master'
add Docker Compose quickstart config See merge request Blockdaemon/solana/pyth_exporter!6
- Loading branch information
Showing
17 changed files
with
2,908 additions
and
34 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
*.png filter=lfs diff=lfs merge=lfs -text |
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Example docker-compose deployment. | ||
version: '3' | ||
|
||
volumes: | ||
prometheus_storage: {} | ||
grafana_storage: {} | ||
|
||
services: | ||
# Prometheus exporter | ||
pyth_exporter: | ||
# --- Release build | ||
# image: "${PYTH_EXPORTER_IMAGE}" | ||
# --- Development build | ||
build: | ||
dockerfile: ./Dockerfile | ||
context: . | ||
restart: unless-stopped | ||
command: | ||
- "--listen=:8080" | ||
- "--log-level=info" | ||
- "--env=${SOLANA_ENV}" | ||
- "--rpc=${SOLANA_RPC}" | ||
- "--ws=${SOLANA_WS}" | ||
|
||
# Prometheus monitoring agent | ||
prometheus: | ||
image: "${PROMETHEUS_IMAGE}" | ||
restart: unless-stopped | ||
ports: | ||
- '9090:9090' | ||
volumes: | ||
- 'prometheus_storage:/prometheus' | ||
- './docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro' | ||
|
||
# Grafana UI | ||
grafana: | ||
image: "${GRAFANA_IMAGE}" | ||
restart: unless-stopped | ||
ports: | ||
- '3000:3000' | ||
volumes: | ||
- 'grafana_storage:/var/lib/grafana' | ||
- './docker/grafana/grafana.ini:/etc/grafana/grafana.ini:ro' | ||
- './docker/grafana/provisioning:/etc/grafana/provisioning:ro' |
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,13 @@ | ||
# Pyth Prometheus Exporter | ||
PYTH_EXPORTER_IMAGE=registry.gitlab.com/blockdaemon/solana/pyth_exporter:latest | ||
|
||
# Prometheus | ||
PROMETHEUS_IMAGE=prom/prometheus:latest | ||
|
||
# Grafana | ||
GRAFANA_IMAGE=grafana/grafana-oss:latest | ||
|
||
# Solana node access | ||
SOLANA_RPC=https://my-node.bdnodes.net?auth=xxx | ||
SOLANA_WS=wss://my-node.bdnodes.net/websocket?auth=xxx | ||
SOLANA_ENV=mainnet |
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,20 @@ | ||
# Example config file for Grafana. | ||
|
||
[auth] | ||
disable_login_form = true | ||
|
||
[auth.basic] | ||
enabled = false | ||
|
||
[auth.anonymous] | ||
enabled = true | ||
org_name = Main Org. | ||
org_role = Editor | ||
hide_version = true | ||
|
||
[security] | ||
disable_initial_admin_creation = true | ||
|
||
[users] | ||
default_theme = light | ||
home_page = /d/V0YM0T-7z/pyth-fix-overview?orgId=1&kiosk=tv&refresh=10s |
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,11 @@ | ||
apiVersion: 1 | ||
providers: | ||
- name: 'local' | ||
orgId: 1 | ||
folder: '' | ||
folderUid: '' | ||
type: file | ||
disableDeletion: true | ||
allowUiUpdates: true | ||
options: | ||
path: /etc/grafana/provisioning/dashboards |
Oops, something went wrong.