{"repo":"madjam002/tailscale-prometheus-sd","free":true,"listed":false,"github":"https://github.com/madjam002/tailscale-prometheus-sd","clone":"git clone https://github.com/madjam002/tailscale-prometheus-sd.git","description":"Prometheus Service Discovery for Tailscale which automatically discovers exporters running on nodes within your Tailscale Network (tailnet). Also works with Headscale.","language":"Nix","stars":17,"topics":["headscale","prometheus","prometheus-service-discovery","tailscale"],"license":"MIT","category":"analytics","readme_excerpt":"tailscale-prometheus-sd Prometheus Service Discovery for Tailscale which automatically discovers exporters running on nodes within your Tailscale Network (tailnet). Unlike alternatives in this space, tailscale-prometheus-sd uses the local Tailscale API and Tailscale Service Collection (https://tailscale.com/kb/1100/services/) to discover exporters running across your network. As it uses the Tailscale localapi, it also works with Headscale with a small patch needed to enable service collection: Usage tailscale-prometheus-sd is currently packaged via Nix. Run with TAILSCALE PROMETHEUS SD CONFIG=path/to/config.json PROMETHEUS TARGETS OUT=path/to/targets.json nix run madjam002/tailscale-prometheus-sd . Example config.json: Services that are matched using matchers in the config.json will be written to the Prometheus service discovery file. Developing Make sure Nix is installed, and preferably direnv, otherwise run nix develop in this repo to start a development shell. Then run TAILSCALE PROMETHEUS SD CONFIG=./config.example.json PROMETHEUS TARGETS OUT=./targets.example.json yarn node -r esbuild-register . License Licensed under the MIT License. View the full license here.","default_branch":null,"files":null,"tree":[],"storefront":"/r/madjam002","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/madjam002/tailscale-prometheus-sd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}