LoginSignup
21
7

More than 3 years have passed since last update.

healthzの由来

Posted at

これは何?

KubernetesのlivenessProbereadinessProbeを設定する際とかの/healthzをパスに指定するのは「どこから来たんだろうなあ」と気になったので調べたことをメモしておく。

Googleの慣習が由来?

Where does the convention of using /healthz for application health checks come from? - Stack Overflow
Stack Overflowで過去に似たようなニュアンスの質問があり、それによると

It historically comes from Google’s internal practices. They're called "z-pages".
歴史的には、Googleの内部慣行に基づいています。それらは「zページ」と呼ばれます。

で、エンドポイントの衝突を避けるためにzを付与しているらしい。
Prometheusがまさに例として挙げられている。

Open source tools like Prometheus implement this pattern (since original authors of Prometheus are also ex-Googlers) by coming to a well-known endpoint to collect metrics from your application.
Prometheusのようなオープンソースツールは、有名なエンドポイントにアクセスしてアプリケーションからメトリックを収集することで、このパターンを実装します(Prometheusの元の作成者も元Google社員であるため)。

おわり

由来がわかっただけなんだけど、こういうのは大事だと思っている。

21
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
7