Open nlamirault opened 2 years ago
I definitely see that allowing configuration of the tailscaled service in this role would be a great new feature. Can you elaborate how Prometheus metrics enters the mix?
I definitely see that allowing configuration of the tailscaled service in this role would be a great new feature. Can you elaborate how Prometheus metrics enters the mix?
I think, @nlamirault meant this parameter:
--debug=localhost:8080
, to run a debug HTTP server serving paths such as /debug/pprof,/debug/metrics
, /debug/ipn, /debug/magicsock, etc. The exact details of what’s accessible over the debug server is subject to change over time.
(c) https://tailscale.com/kb/1278/tailscaled/#flags-to-tailscaled
Ah! That makes a lot of sense. It looks like we can run a lineinfile
module against /etc/default/tailscaled
looking for FLAGS=
and include any flags an end user defines. Is that comma-separated, do you know?
Ah! That makes a lot of sense. It looks like we can run a
lineinfile
module against/etc/default/tailscaled
looking forFLAGS=
and include any flags an end user defines. Is that comma-separated, do you know?
Yep, it's the best way for Linux, I think.
It seems like /etc/default/tailscaled
works for both openrc and sytemd.
My assumption is the FLAGS string is a space-delineated set of the --
flags marked in https://tailscale.com/kb/1278/tailscaled#flags-to-tailscaled. Will play with this in a few days and get a PR up
Is your feature request related to a problem? Please describe. I would like to enable Prometheus metrics for the tailscaled server.
Describe the solution you'd like A variable which can add arguments to the Tailscaled service.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.