Skip to content

Feature request: Prometheus metrics #87

@mazzz1y

Description

@mazzz1y

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"
            }
          ]
      }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions