This commit is contained in:
Ubuntu
2024-04-01 17:55:52 +00:00
parent 74c68c2b28
commit 5eb49c3c18
2 changed files with 19 additions and 6 deletions

View File

@@ -30,7 +30,6 @@ services:
MOTD: "§l§cPatataPack§r" MOTD: "§l§cPatataPack§r"
ONLINE_MODE: "FALSE" ONLINE_MODE: "FALSE"
ALLOW_FLIGHT: "TRUE" ALLOW_FLIGHT: "TRUE"
RCON_PASSWORD: ${RCON_PASSWORD}
OPS: | OPS: |
Bailongo Bailongo
Amimi Amimi
@@ -64,6 +63,7 @@ services:
- prometheus-tsdb:/prometheus - prometheus-tsdb:/prometheus
depends_on: depends_on:
- monitor - monitor
- minecraft-exporter
grafana: grafana:
image: grafana/grafana-oss:${GRAFANA_VERSION:-8.3.3} image: grafana/grafana-oss:${GRAFANA_VERSION:-8.3.3}
ports: ports:
@@ -78,14 +78,17 @@ services:
build: build:
context: ./minecraft-exporter context: ./minecraft-exporter
environment: environment:
RCON_HOST: localhost RCON_HOST: 127.0.0.1
RCON_PORT: 25575 RCON_PORT: 25575
RCON_PASSWORD: ${RCON_PASSWORD} FORGE_SERVER: True
ports: ports:
- 9700:8000 - 9700:8000
volumes: volumes:
- ./world:/world:ro - ../patata-data/world:/world:ro
depends_on:
- mc
volumes: volumes:
patata-data: {} patata-data: {}
world: {}
prometheus-tsdb: {} prometheus-tsdb: {}
grafana-lib: {} grafana-lib: {}

View File

@@ -6,4 +6,14 @@ scrape_configs:
- targets: - targets:
- monitor:8080 - monitor:8080
- targets: - targets:
- cadvisor:8080 - cadvisor:8080
- job_name: minecraft
scrape_interval: 15s
scrape_timeout: 15s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- 127.0.0.1:9700
labels:
server_name: PatataPack server