diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml new file mode 100644 index 0000000..2da9396 --- /dev/null +++ b/examples/docker-compose.yml @@ -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: diff --git a/examples/prometheus.yml b/examples/prometheus.yml new file mode 100644 index 0000000..c2c62a5 --- /dev/null +++ b/examples/prometheus.yml @@ -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'