Skip to content

Latest commit

 

History

History
79 lines (67 loc) · 2.38 KB

README.md

File metadata and controls

79 lines (67 loc) · 2.38 KB

highload-stats

CI Status

HGLS Statistics – stats on servers in real-time graphs and history, easy and powerful.

Preview

Run docker container

  • 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

Install hgls-collector

Required

  • Don't forget open firewall port 3939 for connection hgls-collectors
  • Or settings proxy through nginx

Get telemetry of connections

Use external sqlite files

  • Just add volume docker run ... -v /var/lib/hgls:/app/db

Settings proxy

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;
    }
}

Run without container

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