Skip to content

Commit

Permalink
Add example configs for prometheus/grafana/chia/chia-exporter (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Mar 5, 2024
1 parent 40f6d7e commit 72ca948
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
52 changes: 52 additions & 0 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: '3.8'

services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "9090:9090"

grafana:
image: grafana/grafana-oss:latest
container_name: grafana
restart: unless-stopped
ports:
- "3000:3000"

chia:
image: chianetwork/chia-docker:latest
container_name: chia
restart: unless-stopped
ports:
- "8444:8444"
expose:
- 55400
- 8555
- 8557
- 8559
- 8560
- 8562
- 9256
environment:
self_hostname: 0.0.0.0
volumes:
- chia-root:/root/.chia

chia-exporter:
image: ghcr.io/chia-network/chia-exporter:latest
container_name: chia-exporter
restart: unless-stopped
environment:
CHIA_ROOT: /root/.chia/mainnet
CHIA_EXPORTER_HOSTNAME: chia
volumes:
- chia-root:/root/.chia

volumes:
chia-root:
15 changes: 15 additions & 0 deletions examples/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
global:
scrape_interval: 15s

scrape_configs:
- job_name: "prometheus"
scrape_interval: 15s
static_configs:
- targets: ["localhost:9090"]

- job_name: "chia-exporter"
static_configs:
- targets: ["chia-exporter:9914"]
labels:
application: 'chia-blockchain'
network: 'mainnet'

0 comments on commit 72ca948

Please sign in to comment.