Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Python for DevOps

You're reading from   Hands-On Python for DevOps Leverage Python's native libraries to streamline your workflow and save time with automation

Arrow left icon
Product type Paperback
Published in Mar 2024
Publisher Packt
ISBN-13 9781835081167
Length 220 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Ankur Roy Ankur Roy
Author Profile Icon Ankur Roy
Ankur Roy
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

Preface 1. Part 1: Introduction to DevOps and role of Python in DevOps
2. Chapter 1: Introducing DevOps Principles FREE CHAPTER 3. Chapter 2: Talking about Python 4. Chapter 3: The Simplest Ways to Start Using DevOps in Python Immediately 5. Chapter 4: Provisioning Resources 6. Part 2: Sample Implementations of Python in DevOps
7. Chapter 5: Manipulating Resources 8. Chapter 6: Security and DevSecOps with Python 9. Chapter 7: Automating Tasks 10. Chapter 8: Understanding Event-Driven Architecture 11. Chapter 9: Using Python for CI/CD Pipelines 12. Part 3: Let’s Go Further, Let’s Build Bigger
13. Chapter 10: Common DevOps Use Cases in Some of the Biggest Companies in the World 14. Chapter 11: MLOps and DataOps 15. Chapter 12: How Python Integrates with IaC Concepts 16. Chapter 13: The Tools to Take Your DevOps to the Next Level 17. Index 18. Other Books You May Enjoy

Understanding logging and monitoring

Switching to a more grounded topic, one of the driving principles of DevOps is logging and monitoring instances, endpoints, services, and whatever else you can track and trace. This is necessary because regardless of whatever you do, how clean your code is, or how good your server configuration is, something will fail, go wrong, or just inexplicably stop working altogether. This will happen. It’s a fact of life. It is in fact, Murphy’s law:

Anything that can go wrong will go wrong at the worst possible time.

Familiarizing yourself with this truth is important for a DevOps engineer. Once you have acknowledged it, then you can deal with it. Logging and monitoring come in because when something does go wrong, you need the appropriate data to respond to that event, sometimes automatically.

The rest of this section has been laid out in terms of logging, monitoring, and alerts. Each one of these aspects plays an important role in...

You have been reading a chapter from
Hands-On Python for DevOps
Published in: Mar 2024
Publisher: Packt
ISBN-13: 9781835081167
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime