在服务网中实现可观察性

A Command-and-Control Center image taken from www.appliedglobal.com

指挥和控制中心的图像取自www.appliedglobal.com

I work as an SRE at iZettle and, at times during my on-call, it can be challenging to understand the contributing factors of incidents when they occur or the nature of failures as they happen. As someone running a Microservices Architecture, it’s not an easy task setting up some decent level of observability into the system to quickly understand what’s going on.

我在iZettle担任SRE的工作,在我值班的时候,有时要了解事件发生时的促成因素或故障发生时的性质是很有挑战性的。作为一个运行微服务架构的人,在系统中设置一些像样的可观察性以快速了解正在发生的事情并不是一件容易的事。

In this article I’d like to share my experiences on how one can improve the observability of services through the use of the Consul Connect Service Mesh and later I’ll explain my justification for using it compared to other alternatives. Just for a recap, a service mesh allows you to route HTTP traffic through proxies that are deployed as sidecar containers to a service. These proxies can then expose metrics, logs and traces that allow you to gain rich visibility into the system thus making it more efficient to debug applications quickly and easily. Consul Connect, in addition provides service-to-service authorization and encryption using mutual TLS and uses Envoy as the data plane for the data transmission. In terms of observability, I will cover basic Layer 7 metrics, access logs and distributed tracing using Prometheus, Grafana, AWS CloudWatch Logs and AWS X-Ray.

在这篇文章中,我想分享我的经验,如何通过使用Consul ConnectService Mesh来提高服务的可观察性,随后我将解释我使用它与其他替代方案相比的理由。简单的说,服务网状结构允许你通过代理机构来路由HTTP流量,这些代理机构被部署为服务的边车容器。这些代理可以暴露指标、日志和跟踪,让你获得系统的丰富可见性,从而使你更有效地快速和轻松地调试应用程序。此外,Consul Connect还提供了服务对服务的授权和使用相互TLS的加密,并使用Envoy作为数据传输的数据平面。在可观察性方面,我将介绍基本的第7层指标、访问日志和使用PrometheusGrafanaAWS CloudWatch LogsAWS X-Ray的分布式跟踪。

All the code for this demo can be found in my Github repo.

这个演示的所有代码可以在我的Github repo中找到。

This article will focus mainly on the implementation details, thus the reader is expected to have a basic understanding of Consul’s service mesh feature. If you aren’t already ...

开通本站会员,查看完整译文。

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.154.0. UTC+08:00, 2026-02-24 08:21
浙ICP备14020137号-1 $访客地图$