Setting Up Prometheus DNS-SRV Discovery with Terraform and DNSimple

from blog Blog on hjr265.me, | ↗ original
If you are using Prometheus to collect metrics from your server, and you don’t have a static set of servers, then you should set up automated discovery. There are many ways you can set up automated discovery in Prometheus. However, one of my preferred vendor-agnostic ways of doing this is to use DNS-SRV records. How does it work? Let’s say you...