When tackling dynamic environments, manually maintaining a file of targets is not an option. Service discovery handles the complexity of an ever-changing infrastructure for you, making sure that no service or host slips through the cracks. This chapter focuses on how to take advantage of Prometheus service discovery to decrease the infrastructure management toil regarding coping with constant change.
In brief, the following topics will be covered in this chapter:
- Test environment for this chapter
- Running through the service discovery options
- Using a built-in service discovery
- Building a custom service discovery