cloudflared
cloudflared copied to clipboard
Prometheus metrics missing
This is observable in 2021.8.7, and has also been noticed with previous versions as well. cloudflared_tunnel_active_streams always reports 0, and the metrics cloudflared_muxer_inbound_bytes_per_sec_curr, cloudflared_muxer_outbound_bytes_per_sec_curr, and cloudflared_muxer_rtt are now missing.
Hello @scluff ,
That's because those metrics were only used in a specific transport called h2mux (used between cloudflared and Cloudflare edge) that's been largely replaced by a new transport based on http2.
Hence, it is expected that those metrics are not populated since they were specific to h2mux's implementation.
Hi @nmldiegues,
Understood. Is it feasible to add similar metrics to the new transport? These values were very useful to observe how much traffic was flowing through cloudflared and in estimating additional latency.
I suspect it is not easy since part of this change is that we delegate a lot more work to existing standard libraries rather than (re-)inventing the wheel ourselves.
CC @abelinkinbio about the need/request for "analytics" (which was done here via the "poor man's approach" of looking at low level prometheus metrics)