feat 接入Prometheus

This commit is contained in:
2025-12-17 21:05:12 +08:00
parent efa9f50d3e
commit da91cff056
24 changed files with 289 additions and 60 deletions

View File

@@ -9,7 +9,8 @@ log:
maxAge: 7
client:
count: 100
uid: [ 1,1000000 ]
websocket:
address: "ws://127.0.0.1"
port: 8501
address: "wss://www.hlsq.asia/ws/"
port: 0

View File

@@ -8,6 +8,7 @@ type Config struct {
App *config.AppConfig `yaml:"app"`
Log *config.LogConfig `yaml:"log"`
Client *struct {
Count int32 `yaml:"count"`
UID []int32 `yaml:"uid"`
Websocket *config.AddressConfig `yaml:"websocket"`
} `yaml:"client"`

View File

@@ -9,6 +9,7 @@ log:
maxAge: 7
client:
count: 100
uid: [ 1,1000000 ]
websocket:
address: "ws://172.18.28.0"