Securely Transform JSON into Prometheus
In this video I will show you how to instrument a Python FastAPI to emit or send Prometheus Metrics. I also show those same metrics being captured in Prometheus.
In this video I will show you how to instrument a Python FastAPI to emit or send Prometheus Metrics. I also show those same metrics being captured in Prometheus.
In this video I will show you how to instrument a Python FastAPI to emit or send Prometheus Metrics. I also show those same metrics being captured in Prometheus.
Any realistic usage of Prometheus will have tens, if not hundreds, of scraped endpoints. It becomes impossible to know, track and manage each of these manually.
Thankfully, Prometheus offers a feature called Service Discovery which allows you to delegate the maintenance and discovery of endpoints to a secondary service. In other words, you tell Prometheus to "go over here and get the endpoints from this thing" and it will. No more manual effort involved from you.
This video explains how it all works, with a live demo - of course.
This video explains how to gather values (scrape) from a JSON endpoint and get the metrics into Prometheus.
If you want to do this securely, I have a second video which walks through the secure setup.
If you are brand new to Prometheus, this video will guide you through your first steps with the CNCF monitoring tool. From what Prometheus is, how it works, the types of metrics it supports. It is, as usual, a hands-on exercise so by the end of the video you will have Prometheus up and running collecting monitoring data.