From the course: Prometheus Essential Training
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
HTTP Service Discovery - Prometheus Tutorial
From the course: Prometheus Essential Training
HTTP Service Discovery
- [Instructor] In most cases, Prometheus uses a pull-based model, and you have to tell it how to find your scrape targets. In our discussions and examples so far, we have only used manual file-based scrape targets. We list out the targets directly in the scrape configs. However, this might not be suitable for every environment. In dynamic environments, it becomes harder to provide a static list of targets. To solve this problem, Prometheus provides ways to do service discovery, which will allow the system to automatically discover and monitor targets without manual configuration. This is important in dynamic environments, such as microservices. In this video, we are focusing on HTTP service discovery, but let us take a look at some other examples of service discovery. The first is manual service discovery, which is provided through static scrape configs. The next is file-based service discovery. In this type, Prometheus scans the files periodically for information about targets. Next,…