Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.
Open
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
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ services:
CIV_RABBITMQ_HOST: rabbitmq
CIV_RABBITMQ_USERNAME: rabbitmq
CIV_RABBITMQ_PASSWORD: rabbitmq

CIV_INFLUX_HOST: http://influxdb:8086
CIV_INFLUX_ORGANIZATION: influxdb
CIV_INFLUX_BUCKET: influxdb
CIV_INFLUX_USERNAME: influxdb
CIV_INFLUX_PASSWORD: influxdb
CIV_INFLUX_TOKEN: 4eYvsu8wZCJ6tKuE2sxvFHkvYFwSMVK0011hEEiojvejzpSaij86vYQomN_12au6eK-2MZ6Knr-Sax201y70w==

volumes:
- ./local/paper:/data

Expand Down Expand Up @@ -93,6 +101,28 @@ services:
- ./provisioning/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./local/postgres:/var/lib/postgresql/data

influxdb:
image: influxdb:2.7.4-alpine
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "influxdb:8086/api/v2/ping"]
interval: 60s
timeout: 10s
retries: 5
ports:
- "8086:8086"
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: influxdb
DOCKER_INFLUXDB_INIT_PASSWORD: influxdb
DOCKER_INFLUXDB_INIT_ORG: influxdb
DOCKER_INFLUXDB_INIT_BUCKET: influxdb
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: 4eYvsu8wZCJ6tKuE2sxvFHkvYFwSMVK0011hEEiojvejzpSaij86vYQomN_12au6eK-2MZ6Knr-Sax201y70w==
DOCKER_INFLUXDB_INIT_CLI_CONFIG_NAME: default2 # idk man

volumes:
- ./local/influxdb:/var/lib/influxdb2

rabbitmq:
image: rabbitmq:3.9.16-management
restart: unless-stopped
Expand Down
15 changes: 15 additions & 0 deletions paper/config/plugins/UnifiedMetrics/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server:
name: "CivMC"

metrics:
enabled: true
driver: "influx"
collectors:
systemGc: true
systemMemory: true
systemProcess: true
systemThread: true
server: true
world: true
tick: true
events: true
10 changes: 10 additions & 0 deletions paper/config/plugins/UnifiedMetrics/driver/influx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
output:
url: "${CIV_INFLUX_HOST}"
organization: "${CIV_INFLUX_ORGANIZATION}"
bucket: "${CIV_INFLUX_BUCKET}"
interval: 10
authentication:
scheme: "TOKEN"
username: "${CIV_INFLUX_USERNAME}"
password: "${CIV_INFLUX_PASSWORD}"
token: "${CIV_INFLUX_TOKEN}"
Binary file not shown.