Say goodbye to your legacy VPNMake the switch to Tailscale
Get started
Login
WireGuard is a registered trademark of Jason A. Donenfeld.
© 2024 Tailscale Inc. All rights reserved. Tailscale is a registered trademark of Tailscale Inc.
Blog|productDecember 17, 2024

Better node monitoring with new client metrics

Green shapes on a green background

Tailscale client metrics are now available for local or remote examination, and can be directly ingested by Prometheus or any compatible monitoring system. These are especially useful for keeping tabs on the health and connectivity of subnet routers, and we think they’ll be an immediate upgrade for users that rely on those, such as deployments with site-to-site network configurations, setups with Docker containers, or teams using Tailscale with Kubernetes.

A full list of the metrics available through this new feature is available in our docs, along with details on how to use the subcommands. If you’re using Tailscale 1.78 or later, you can see what’s available with the command tailscale metrics print in the terminal. Available metrics are displayed in the standard Prometheus text exposition format, which is relatively human-readable and handy for manual debugging. You can also use that command in scripts depending on your needs.

We’ve also implemented a command to write the available metrics to a file, with tailscale metrics write. The resulting text file can then be consumed and exported by the textfile collector provided by the Prometheus node exporter, which means this can plug right into your existing monitoring jobs.

For more flexibility though, we’ve built this feature such that these metrics are available over the network, including of course through your tailnet itself. To see how it works, you can poll locally using the local-only quad-100 address, like so:

curl 100.100.100.100/metrics

Or, if you must, wget -qO- 100.100.100.100/metrics.

To access the same information from another device on your tailnet, enable the Tailscale web client and grant your monitoring server access to that machine’s port 5252 in your ACLs. You can then poll the /metrics path under the device’s Tailscale IP address. If the machine has a public IP address and you want to expose the metrics for consumption over the non-Tailscale internet, you can do so with the tailscale web command.

Monitoring the health and connectivity of your services and devices is a critical part of network management, and we hope this new feature marks a real quality-of-life improvement for our users, from homelabbers up to IT and infrastructure teams. Previously, you might have gathered this information by parsing through logs, or (🤫) by poking through a debugging interface that wasn’t publicly documented or guaranteed to be stable. This is way better. Go forth and measure your traffic.

Share

Author

Parker HigginsParker Higgins

Contributor

Kristoffer Dalby
Loading...

Try Tailscale for free

Schedule a demo
Contact sales
cta phone
mercury
instacrt
Retool
duolingo
Hugging Face