We explored, through a few examples, how to instrument our services and provide more detailed metrics than what we would be able to do through exporters. Early in the book, I said that we should use exporters instead instrumentation unless they do not provide enough information. It turned out that they do not. If, for example, we used an exporter, we would get metrics based on requests coming through the proxy. We would not be aware of internal communication between services nor would we be able to obtain response times of certain parts of the services we're deploying. Actually, HAProxy Exporter (https://github.com/prometheus/haproxy_exporter) does not even provide response times since the internal metrics it exposes is not entirely compatible with Prometheus and cannot be exported without sacrificing accuracy. That does not mean that HAProxy metrics are not accurate...
The DevOps 2.2 Toolkit
By :
The DevOps 2.2 Toolkit
By:
Overview of this book
Building on The DevOps 2.0 Toolkit and The DevOps 2.1 Toolkit: Docker Swarm, Viktor Farcic brings his latest exploration of the Docker technology as he records his journey to explore two new programs, self-adaptive and self-healing systems within Docker.
The DevOps 2.2 Toolkit: Self-Sufficient Docker Clusters is the latest book in Viktor Farcic’s series that helps you build a full DevOps Toolkit. This book in the series looks at Docker, the tool designed to make it easier in the creation and running of applications using containers. In this latest entry, Viktor combines theory with a hands-on approach to guide you through the process of creating self-adaptive and self-healing systems.
Within this book, Viktor will cover a wide-range of emerging topics, including what exactly self-adaptive and self-healing systems are, how to choose a solution for metrics storage and query, the creation of cluster-wide alerts and what a successful self-sufficient system blueprint looks like.
Work with Viktor and dive into the creation of self-adaptive and self-healing systems within Docker.
Table of Contents (18 chapters)
Preface
Free Chapter
Introduction to Self-Adapting and Self-Healing Systems
Choosing a Solution for Metrics Storage and Query
Deploying and Configuring Prometheus
Scraping Metrics
Defining Cluster-Wide Alerts
Alerting Humans
Alerting the System
Self-Healing Applied to Services
Self-Adaptation Applied to Services
Painting the Big Picture – The Self-Sufficient System Thus Far
Instrumenting Services
Self-Adaptation Applied to Instrumented Services
Setting Up a Production Cluster
Self-Healing Applied to Infrastructure
Self-Adaptation Applied to Infrastructure
Blueprint of a Self-Sufficient System
Other Books You May Enjoy
Customer Reviews