Using service discovery in a cloud provider
While the Kubernetes service discovery we’ve looked at so far is great and all, you more than likely have some regular old servers that need to be monitored too! How can we discover those? If you’re one of the thousands of people running virtualized infrastructure in the cloud, you may be entitled to dynamic service discovery.
Most established cloud providers have service discovery mechanisms built directly into Prometheus for discovering virtualized infrastructure. Such providers include AWS, Azure, GCP, DigitalOcean, Vultr, Hetzner, and – my personal favorite – Linode (also known as Akamai Connected Cloud).
I’m slightly biased in favor of Linode since – at the time of writing – I work there. It also doesn’t hurt that a former teammate of mine (TJ Hoplock) wrote and contributed to the Linode service discovery provider, which means I’m pretty familiar with it. So, let’...