Summary
In this chapter, we explored how to use programming tools to access data from observability systems and showed what you can do with that data.
We started with simple Python examples to help us understand how to collect metrics from Prometheus and logs from Loki. This helped us get comfortable with the data structure and develop basic skills for retrieving the information we needed.
Starting from the basics we learned about in previous chapters, we created tools that directly address what network engineers need. We built a simple CLI that uses our earlier data-gathering techniques. This tool can spot which network interfaces are being heavily used or give a quick health check of a network site by collecting data from Prometheus, Loki, and Nautobot. By combining information from these sources, the tool helps network engineers get a clearer picture of network status in one place, saving time and effort.
Then, we tackled more complex scenarios using event-driven and closed...