Automatic Prometheus Endpoint Discovery using Service Discovery

Опубликовано: 21 Март 2026
на канале: Adam Gardner
1,075
31

In this video I describe what Prometheus service discovery is and two ways to do it. File based service discovery and service discovery via a custom made Python and FastAPI targets endpoint server. This is another hands on video.

Git Repo: See Pinned Comment

Timestamps
00:00 Prometheus Service Discovery Overview
00:15 Video Summary and Outcomes
00:34 What is Service Discovery?
01:47 Hands On
03:37 Prometheus Configuration YAML for file based Service Discovery
04:47 targets.json file
05:15 Dynamically add a second server to targets.json
06:32 Prometheus Service Discovery via HTTP(s)
07:16 Prometheus Configuration YAML for HTTP based Service Discovery
08:29 Dynamically removing endpoints from HTTP endpoint
09:27 Re-add the old server
10:04 Recap
10:26 Like, Subscribe and Thank You