Skip to content

Tailscale monitoring

Integrated tailscaled metrics

$ tailscale metrics print | grep '^tailscale' | cut -d'{' -f 1 | sort | uniq
tailscaled_advertised_routes 0
tailscaled_approved_routes 0
tailscaled_health_messages
tailscaled_home_derp_region_id 4
tailscaled_inbound_bytes_total
tailscaled_inbound_packets_total
tailscaled_outbound_bytes_total
tailscaled_outbound_dropped_packets_total
tailscaled_outbound_packets_total

sbaerlocher/tsmetrics

adinhodovic/tailscale-exporter

Available metrics:

$ curl -Ssl https://hs.varac.net/tailscale-exporter-metrics | grep -Ev '^(#|promhttp_|process_|go_)' | sed 's/[{ ].*//' | sort | uniq
headscale_apikeys_created_timestamp
headscale_apikeys_expiration_timestamp
headscale_apikeys_info
headscale_health_database_connectivity
headscale_nodes_approved_routes
headscale_nodes_available_routes
headscale_nodes_created_timestamp
headscale_nodes_info
headscale_nodes_last_seen_timestamp
headscale_nodes_online
headscale_nodes_subnet_routes
headscale_nodes_tags
headscale_preauthkeys_created_timestamp
headscale_preauthkeys_expiration_timestamp
headscale_preauthkeys_info
headscale_scrape_collector_duration_seconds
headscale_scrape_collector_success
headscale_up
headscale_users_created_timestamp
headscale_users_info

other exporter

other monitoring tools

Monitoring headscale

Available prometheus metrics (/metrics):

$ curl -Ssl https://hs.varac.net/metrics | grep -Ev '^(#|promhttp_|process_|go_)' | sed 's/[{ ].*//' | sort | uniq
headscale_mapper_changes_dropped_total
headscale_mapresponse_ended_total
headscale_mapresponse_endpoint_updates_total
headscale_mapresponse_generated_total
headscale_mapresponse_sent_total
headscale_nodestore_batch_duration_seconds_bucket
headscale_nodestore_batch_duration_seconds_count
headscale_nodestore_batch_duration_seconds_sum
headscale_nodestore_batch_size_bucket
headscale_nodestore_batch_size_count
headscale_nodestore_batch_size_sum
headscale_nodestore_nodes
headscale_nodestore_operation_duration_seconds_bucket
headscale_nodestore_operation_duration_seconds_count
headscale_nodestore_operation_duration_seconds_sum
headscale_nodestore_operations_total
headscale_nodestore_peers_calculation_duration_seconds_bucket
headscale_nodestore_peers_calculation_duration_seconds_count
headscale_nodestore_peers_calculation_duration_seconds_sum
headscale_nodestore_queue_depth
headscale_nodestore_snapshot_build_duration_seconds_bucket
headscale_nodestore_snapshot_build_duration_seconds_count
headscale_nodestore_snapshot_build_duration_seconds_sum
headscale_nodestore_snapshot_builds_total
http_request_duration_seconds_bucket
http_request_duration_seconds_count
http_request_duration_seconds_sum
http_requests_inflight
http_requests_total