Skip to Content
Go言語による分散サービス ―信頼性、拡張性、保守性の高いシステムの構築
book

Go言語による分散サービス ―信頼性、拡張性、保守性の高いシステムの構築

by Travis Jeffery, 柴田 芳樹
August 2022
Beginner to intermediate
280 pages
3h 50m
Japanese
O'Reilly Japan, Inc.
Content preview from Go言語による分散サービス ―信頼性、拡張性、保守性の高いシステムの構築

6章システムの観測

ある日、目が覚めて、ズボンのベルトの最後の穴が合わないことに気付いたとします。体重計に乗ってみると、一晩でかなりの量の体重が増えています。慌ててダイエットとフィットネスに励みます。数週間後、体重を測ってみると、なぜかさらに体重が増えています。何が起きているのでしょうか。

必要なのは、自分の体で何が起きているのかを知ることです。もし、私たちの体に可観測性(observability:オブザーバビリティ)が備わっていたら、ホルモン値のような体の指標がダッシュボード(dashboard)にグラフ化されるでしょう。ホルモン値が急激に変化した場合、すべての条件が同じであれば、ホルモンバランスの乱れが根本原因であると推測できます。しかし、何が変わったのかが分からないと、問題を解決するためにさまざまな変更を行っても、それぞれの影響が出てしまいます。

私たちは、システムを観測可能にすることで、システムの状態を理解するための仮説を立てたり、予期せぬ問題をデバッグしたりします。キーワードは、「予期せぬ」です。システムを観測可能にすることは、今までに起きたことがない問題を解決できるということです。この章では、サービス内で何が起きているのかを理解するために、サービスを観測可能にします。

6.1 3種類のテレメトリデータ

可観測性とは、システムの外部出力から、システムの内部(動作や状態)をどれだけ理解できるかを示す尺度です。システムを観測可能にするための出力として、メトリクス、構造化ログ、トレースを使います。テレメトリ(telemetry:遠隔測定)データには、独自のユースケースを持つ3種類がありますが、多くの場合、同じイベントから得ることができます。たとえば、ウェブサービスがリクエストを処理するたびに、「処理されたリクエスト数」というメトリクスの値を増加させたり、リクエストのログを出力したり、トレースを作成したりします。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

エンジニアリングマネージャーのしごと ―チームが必要とするマネージャーになる方法

エンジニアリングマネージャーのしごと ―チームが必要とするマネージャーになる方法

James Stanier, 吉羽 龍太郎, 永瀬 美穂, 原田 騎郎, 竹葉 美沙
サイトリライアビリティワークブック ―SREの実践方法

サイトリライアビリティワークブック ―SREの実践方法

Betsy Beyer, Niall Richard Murphy, David K. Rensin, Kent Kawahara, Stephen Thorne, 澤田 武男, 関根 達夫, 細川 一茂, 矢吹 大輔, 玉川 竜司
スクラム実践者が知るべき97のこと

スクラム実践者が知るべき97のこと

Gunther Verheyen, 吉羽 龍太郎, 原田 騎郎, 永瀬 美穂
生成AI時代の価値のつくりかた ―実践者のマインド、スキル、データ、ユースケース

生成AI時代の価値のつくりかた ―実践者のマインド、スキル、データ、ユースケース

Rob Thomas, Paul Zikopoulos, Kate Soule, 本多 真二郎, オライリー・ジャパン編集部

Publisher Resources

ISBN: 9784873119977Other