index.html :: rss :: github :: telegram :: email

prometheus: metrics forwarding

17 Aug 2024

Our metrics infrastructure is pretty weird: two Tailscale networks, prom+grafana in one of them, a lots of hosts in another.

The problem is: you have to share all machines from the second network, and/or deal with ACLs to make them accessible by a metrics scrapper from the first network.

The idea is: share only one machine, use it as a proxy or metrics gateway for the whole network.

I can see two possible approaches for this:

The second approach sounds weird enough to give it a try, and so learn something new about prometheus protocol, and its internals. But that's the only pros on that, so let's quickly hack the first solution.

two hours alter: the solution, now manages metrics collection in my personal Tailscale network.