Skip to content

oxmix/highload-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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