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

Enable Tailscale client metrics #476

Open
xeberth opened this issue Feb 20, 2025 · 5 comments
Open

Enable Tailscale client metrics #476

xeberth opened this issue Feb 20, 2025 · 5 comments

Comments

@xeberth
Copy link

xeberth commented Feb 20, 2025

Now you can expose and collect Tailscale client metrics for use with monitoring systems such as Prometheus for your Tailscale network.

These metrics provide insights into client behavior, health, and performance. For example, you can view information about client connectivity to subnet routers configured in your tailnet.

This enable also the option to monitor tailscale from grafana dashboards

How we can enable this option from add-on config?


Sources: https://tailscale.com/kb/1482/client-metrics

@frenck
Copy link
Member

frenck commented Feb 20, 2025

Oh man they keep adding options huh?

I'm at the point that I'm thinking about just not adding more options. It really kills the ease of use and becoming a monster of things.

@frenck
Copy link
Member

frenck commented Feb 20, 2025

I would recommend to create a feature request upstream with tailscale, to ask if they can extend an WebUI that provides options like these.

@lmagyar
Copy link
Contributor

lmagyar commented Feb 21, 2025

@xeberth It's already part of the web UI, but there is a bug in Tailscale web server, when the --readonly flag is used, ie. tailscale web --readonly is used (as the add-on starts the web ui), tailscale forgets to start up the 5252 port listener for the metrics data on the tailnet IP of the client.

$ /opt/tailscale web
2025/02/21 23:54:16 starting tailscaled web client at http://100.x.x.x:5252
2025/02/21 23:54:16 web server running on: http://localhost:8088

$ /opt/tailscale web --readonly
2025/02/21 23:54:23 web server running on: http://localhost:8088

curl 100.x.x.x:5252/metrics should work with --readonly also

Please open an issue at the tailscale repo with the above information.

@lmagyar
Copy link
Contributor

lmagyar commented Feb 24, 2025

Created the TS issue: tailscale/tailscale#15108

@lmagyar
Copy link
Contributor

lmagyar commented Feb 26, 2025

The --readonly bug is confirmed upstream, this issue can be closed now.

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

No branches or pull requests

3 participants