-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Description
I think it is good to have something to monitor service stats. With v2ray/xray we can use v2ray-exporter -- tool which converts built-in stats into prometheus metrics.
I think it is possible to serve /metrics path directly by sing-box and avoid to use external exporters.
For example:
{
"stats": {
"enabled": true
},
"inbounds": [
{
"type": "prometheus",
"tag": "prometeus-in",
"listen": "::",
"listen_port": 1080,
"path": "/metrics",
// basic auth
"users": [
{
"username": "admin",
"password": "admin"
}
]
}
]
}
xinyangli, yanghanlin, RayWangQvQ, payam-int, juvenn and 2 more