Files
netease-modsdk-wiki/docs/mcguide/27-网络游戏/课程5:实用知识/第9节:在线人数显示.md
2025-03-17 13:24:39 +08:00

45 lines
1.4 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
front:
hard: 入门
time: 10分钟
---
# 在线人数显示
网络服登录页面中,包含了实时的在线人数。该人数能有效反应游戏当前的参与情况,对玩家选择游戏以及开发者监控服务器情况至关重要。
![1568016399843](./images/zaixian1.png)
完成下列步骤后,可在网络服登录页面中显示在线人数:
### 步骤1申请项目代号
项目完成第一次上线提审通过之后,需进行**项目代号**申请。项目代号一般命名规则是mcXXXX其中“XXXX”是项目名称拼音首字母。
项目代号可在入驻群中联系工作人员进行申请。
### 步骤2监控工具grafana接入
详见[**第4节Monitor监控报警系统**](./第4节Monitor监控报警系统.html)、[**第5节Grafana监控进阶功能**](./第5节Grafana监控进阶功能.html)。
### 步骤3在审核阶段、上线阶段部署“运营数据”插件
![1568016399843](./images/zaixian2.png)
### 步骤4在上线阶段正确填写监控运营数据
在上线阶段服务器配置中勾选“监控运营数据”并正确填写IP、数据库等相关信息。
相关信息将在正式机器发放的时候一并提供,若有疑问,请在入驻的群中联系工作人员进行确认。
![1568016399843](./images/zaixian3.png)