Recommended approach
As we've explained so far, building a custom service discovery seems like a manageable enough endeavor. We're required to query something for data and write that data into a file, following a standard format. To make our lives easier, the Prometheus team made an adapter available that removes a big chunk of the boilerplate for creating a new service discovery integration. This adapter is only provided for the Go programming language, as it reuses some code from Prometheus itself. The adapter was made this way so that some less-maintained service discovery integrations could be migrated out to standalone services without too much effort, as well as easing the migration into the main Prometheus binary of external discovery ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access