Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example configs for prometheus/grafana/chia/chia-exporter #141

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading