-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
919d84f
commit 0c348cc
Showing
2 changed files
with
42 additions
and
0 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,33 @@ | ||
name: 'subcoin' | ||
|
||
services: | ||
prometheus: | ||
image: prom/prometheus:latest | ||
container_name: prometheus | ||
volumes: | ||
- ./prometheus.yml:/etc/prometheus/prometheus.yml | ||
- prometheus_data:/prometheus | ||
command: | ||
- '--config.file=/etc/prometheus/prometheus.yml' | ||
- '--web.listen-address=0.0.0.0:9090' | ||
ports: | ||
- '9090:9090' # Expose Prometheus UI on port 9090 | ||
restart: unless-stopped | ||
|
||
grafana: | ||
image: grafana/grafana:latest | ||
container_name: grafana | ||
ports: | ||
- '3000:3000' # Expose Grafana UI on port 3000 | ||
environment: | ||
- GF_SECURITY_ADMIN_USER=admin | ||
- GF_SECURITY_ADMIN_PASSWORD=admin | ||
volumes: | ||
- grafana_data:/var/lib/grafana | ||
depends_on: | ||
- prometheus | ||
restart: unless-stopped | ||
|
||
volumes: | ||
prometheus_data: | ||
grafana_data: |
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,9 @@ | ||
# A scrape configuration containing exactly one endpoint to scrape: | ||
scrape_configs: | ||
- job_name: "subcoin_node" | ||
|
||
scrape_interval: 5s | ||
|
||
static_configs: | ||
# Replace localhost as the public IP address if deployed on the cloud. | ||
- targets: ["localhost:9615"] |