Skip to content

Report agent WireGuard transport metric (udp vs websocket)#5001

Merged
lillianberryfly merged 1 commit into
masterfrom
agent-wireguard-transport-metric
Jul 13, 2026
Merged

Report agent WireGuard transport metric (udp vs websocket)#5001
lillianberryfly merged 1 commit into
masterfrom
agent-wireguard-transport-metric

Conversation

@lillianberryfly

Copy link
Copy Markdown
Contributor

The agent now reports which transport it used to establish a WireGuard tunnel (plain UDP or the websocket proxy) to flyctl-metrics via a new agent_wireguard/transport metric.

Since the agent is a long-lived daemon that never reaches the end-of-command metrics flush, this adds metrics.SendImmediate, which posts a single-message batch right away through the existing SendMetrics path (respecting send_metrics config, the dev-build guard, and metrics-token handling).

The agent now reports which transport it used to establish a WireGuard
tunnel (plain UDP or the websocket proxy) to flyctl-metrics via a new
agent_wireguard/transport metric.

Since the agent is a long-lived daemon that never reaches the
end-of-command metrics flush, this adds metrics.SendImmediate, which
posts a single-message batch right away through the existing
SendMetrics path (respecting send_metrics config, the dev-build guard,
and metrics-token handling).

Collector side: superfly/flyctl-metrics agent-wireguard-transport-metric

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@lillianberryfly lillianberryfly merged commit d8820ba into master Jul 13, 2026
12 checks passed
@lillianberryfly lillianberryfly deleted the agent-wireguard-transport-metric branch July 13, 2026 19:05
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

Successfully merging this pull request may close these issues.

1 participant