Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Prometheus metrics #87

Closed
mazzz1y opened this issue Sep 15, 2022 · 2 comments · May be fixed by #2060
Closed

Feature request: Prometheus metrics #87

mazzz1y opened this issue Sep 15, 2022 · 2 comments · May be fixed by #2060
Labels

Comments

@mazzz1y
Copy link
Contributor

mazzz1y commented Sep 15, 2022

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"
            }
          ]
      }
    ]
}
@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

@PoneyClairDeLune
Copy link

So uhh... Has the feature been implemented yet before it got closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants