[Feature]: Count servers that do not run monitor in LinuxGSM Stats

Đang mở
#5,204 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
bash, shell
Lĩnh vực
analytics, cli, documentation

Hướng nghiên cứu

Start by reading info_stats.sh and its call sites in command_monitor.sh (lines 319 and 466), then trace the install opt-in and start flows. Done means opted-in installs report after opting in and after starting, without CPU or RAM values, while the once-a-day limit prevents duplicate reports; update the docs to name the commands that send reports.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

command: install command: monitor command: start priority: medium scope: all servers type: feature
Priority

priority: medium

User story

As an admin who opted in to stats but only uses start and stop (a one-off server, an occasional game night, or a LAN or online event), I want that server counted, so that the usage page shows every opted-in install, not only the ones running monitor.

Game

No response

Linux distro

No response

Command

command: install, command: start, command: monitor

Problem statement

info_stats.sh is only called from monitor (command_monitor.sh lines 319 and 466). Admins who run a server once or now and then without a monitor cron job never send a report: one-off servers, occasional game nights, LAN parties and other online or offline events. They are missing from https://linuxgsm.com/data/usage/, so the page only counts servers that run monitor.

Scope and impact

scope: all servers

Further information

Also send the daily report from:

  • install, right after the user opts in to stats.
  • start, after the server has started.

Both should leave out CPU and RAM use: there is none after install, and right after start the values say little.

Since #5198 a report goes out at most once a day per instance, so servers that run monitor send nothing extra. On a day when install or start sends first, the report has no usage values, and monitor sends them from the next day.

GameServerManagers/LinuxGSM-Docs#154 says reports are sent "when stats run". The docs should name the commands that send them.

Alternatives considered
  • stop: the server is still running, so the usage values are real, but with start sending first it would only add a report when a server runs past midnight UTC.
  • details: running it does not mean the server is in use, and anyone who runs it has already installed or started the server.
  • Leave it as is and say in the docs that only servers running monitor are counted.

🤖 Generated with Claude Code

Ngôn ngữ chính
Shell
Star
4.9k
Fork
866
Merge trung bình
17 giờ 58 phút
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.