Added prometheus with scrape options
This commit is contained in:
parent
f839fa454e
commit
101a598f6f
14
fallback/config/unifiedmetrics/config.yml
Normal file
14
fallback/config/unifiedmetrics/config.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
server:
|
||||||
|
name: "global"
|
||||||
|
metrics:
|
||||||
|
enabled: true
|
||||||
|
driver: "prometheus"
|
||||||
|
collectors:
|
||||||
|
systemGc: true
|
||||||
|
systemMemory: true
|
||||||
|
systemProcess: true
|
||||||
|
systemThread: true
|
||||||
|
server: true
|
||||||
|
world: true
|
||||||
|
tick: true
|
||||||
|
events: true
|
16
fallback/config/unifiedmetrics/driver/prometheus.yml
Normal file
16
fallback/config/unifiedmetrics/driver/prometheus.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
mode: "HTTP"
|
||||||
|
http:
|
||||||
|
host: "0.0.0.0"
|
||||||
|
port: 9100
|
||||||
|
authentication:
|
||||||
|
scheme: "NONE"
|
||||||
|
username: "username"
|
||||||
|
password: "password"
|
||||||
|
pushGateway:
|
||||||
|
job: "unifiedmetrics"
|
||||||
|
url: "http://pushgateway:9091"
|
||||||
|
authentication:
|
||||||
|
scheme: "NONE"
|
||||||
|
username: "username"
|
||||||
|
password: "password"
|
||||||
|
interval: 10
|
@ -11,8 +11,7 @@ https://cdn.modrinth.com/data/LFJf0Klb/versions/7e8Rxgsk/ce-2.1.1.jar
|
|||||||
https://cdn.modrinth.com/data/8dI2tmqs/versions/AQhF7kvw/FabricProxy-Lite-2.9.0.jar
|
https://cdn.modrinth.com/data/8dI2tmqs/versions/AQhF7kvw/FabricProxy-Lite-2.9.0.jar
|
||||||
|
|
||||||
# Monitoring
|
# Monitoring
|
||||||
https://cdn.modrinth.com/data/dbVXHSlv/versions/YcE9H1C5/fabricexporter-1.0.11.jar
|
https://cdn.modrinth.com/data/p1ewR5kV/versions/xwRVtqbA/unifiedmetrics-platform-fabric-0.3.8.jar
|
||||||
https://cdn.modrinth.com/data/l6YH9Als/versions/qTSaozEL/spark-1.10.97-fabric.jar
|
|
||||||
|
|
||||||
# World Edit
|
# World Edit
|
||||||
https://cdn.modrinth.com/data/1u6JkXh5/versions/vBzkrSYP/worldedit-mod-7.3.6.jar
|
https://cdn.modrinth.com/data/1u6JkXh5/versions/vBzkrSYP/worldedit-mod-7.3.6.jar
|
||||||
|
0
monitoring/compose.yml
Normal file
0
monitoring/compose.yml
Normal file
0
monitoring/grafana/compose.yml
Normal file
0
monitoring/grafana/compose.yml
Normal file
0
monitoring/prometheus/.gitignore
vendored
Normal file
0
monitoring/prometheus/.gitignore
vendored
Normal file
7
monitoring/prometheus/compose.yml
Normal file
7
monitoring/prometheus/compose.yml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
services:
|
||||||
|
prometheus:
|
||||||
|
image: prom/prometheus
|
||||||
|
volumes:
|
||||||
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||||
|
ports:
|
||||||
|
- 9090:9090
|
19
monitoring/prometheus/prometheus.yml
Normal file
19
monitoring/prometheus/prometheus.yml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
global:
|
||||||
|
scrape_interval: 10s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
# This instance scraper
|
||||||
|
- job_name: 'prometheus'
|
||||||
|
static_configs:
|
||||||
|
- targets:
|
||||||
|
- prometheus:9090
|
||||||
|
|
||||||
|
# Server Scrapers
|
||||||
|
- job_name: 'mc-server'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['localhost:9100']
|
||||||
|
labels:
|
||||||
|
instance: 'Fallback'
|
||||||
|
- targets: ['100.80.35.55:9100']
|
||||||
|
labels:
|
||||||
|
instance: 'Main'
|
@ -14,7 +14,7 @@ services:
|
|||||||
- ./velocity.toml:/config/velocity.toml:ro
|
- ./velocity.toml:/config/velocity.toml:ro
|
||||||
- ./forwarding.secret:/config/forwarding.secret:ro
|
- ./forwarding.secret:/config/forwarding.secret:ro
|
||||||
- ./unifiedmetrics:/plugins/unifiedmetrics
|
- ./unifiedmetrics:/plugins/unifiedmetrics
|
||||||
- ./server:/server
|
- proxy:/server
|
||||||
ports:
|
ports:
|
||||||
- 25565:25565
|
- 25565:25565
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user