HGLS Statistics – stats on servers in real-time graphs and history, easy and powerful.
- Execute in the console
$ docker run -d --name highload-stats \
--restart always --log-opt max-size=5m \
-p 127.0.0.1:8039:8039 \
-p 127.0.0.1:3939:3939 \
oxmix/highload-stats:2
- Open in browser
http://127.0.0.1:8039
orhttp://remote.host.io:8039
- Run collector for each server https://github.com/oxmix/hgls-collector
- Don't forget open firewall port 3939 for connection hgls-collectors
- Or settings proxy through nginx
- Endpoint
http://127.0.0.1:8039/telemetry
- Just add volume
docker run ... -v /var/lib/hgls:/app/db
Example for proxy nginx >= 1.3.13
server {
listen 80;
server_name remote.host.io;
location / {
proxy_pass http://127.0.0.1:8039;
proxy_http_version 1.1;
proxy_read_timeout 200s;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
}
location /collector {
proxy_pass http://127.0.0.1:3939;
proxy_http_version 1.1;
proxy_read_timeout 200s;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
}
}
- In console
$ npm i
and$ ./index.js start
maybe alsostop|restart|debug
- Open in browser
http://127.0.0.1:8039
orhttp://remote.host.io:8039
Deployment manifest for container-ship
space: hgls
name: highload-stats-deployment
nodes:
- localhost
containers:
- name: highload-stats
from: oxmix/highload-stats:2
restart: always
log-opt: max-size=5m
ports:
- 127.0.0.1:8039:8039
- 127.0.0.1:3939:3939
volumes:
- /var/lib/hgls:/app/db