tailscale / tailscale

The easiest, most secure way to use WireGuard and 2FA.
https://tailscale.com
BSD 3-Clause "New" or "Revised" License
17.05k stars 1.3k forks source link

tsweb/promvarz: add bool to omit Prometheus metrics #12120

Closed andrew-d closed 2 weeks ago

andrew-d commented 2 weeks ago

This is causing problems with certain servers that have a lot of open FDs; the process collector that Prometheus provides generates a lot of garbage when enumerating open FDs, which is why we have metrics.CurrentFDs (which uses util/dirwalk).

Updates tailscale/corp#19900

Change-Id: I732f854e637c4d7a651b3c74cd8e363cb1092bcc