Update /ready and /health schemas for v2.10
評価
この issue はまだ評価されていません。
説明
Summary
Two contract changes are needed for InfluxDB OSS v2.10 and InfluxDB Cloud 2:
- The
/readyand/healthschemas don't describe the v2.10 responses. - The Cloud
Routesschema is missing two keys that Cloud returns.
I tested influxdata/influxdb main-2.x at 310ee146d9 (built locally) and a production InfluxDB Cloud 2 (TSM) org on 2026-10-08.
1. /ready and /health schemas are out of date
Problem
src/common/schemas/Ready.yml and src/common/paths/ready.yml haven't changed since 2021-03.
main-2.x returns fields and states that neither contract describes.
HEALTH_READY.md in main-2.x documents the same behavior.
influxdata/docs-v2#7286 added some of these changes by editing the OSS spec in docs-v2 directly.
The next sync from this repo would overwrite them, so the change belongs here.
Verification
/ready during startup returns 503:
{"status":"starting","started":"2026-10-08T17:54:06.861243-05:00","up":"48.001208ms",
"uptime":{"value":0.048001208,"unit":"seconds"},
"checks":[{"name":"shards","status":"fail","message":"waiting for shard enumeration",
"progress":{"completed":0,"total":0,"unit":"shards"}}, ...]}
/ready after startup returns 200 with status, started, up, and uptime, and no checks.
/health returns 200 with a failures object in the shards check, plus version and commit:
{"name":"influxdb","status":"pass","message":"healthy",
"checks":[{"name":"shards","status":"pass","failures":{"count":0,"unit":"shards"}}, ...],
"version":"dev","commit":"none"}
After a failed startup, /health returns 503 with status: fail, and the failing check's message contains the raw error.
With --startup-error-linger, both endpoints keep serving for the linger window before influxd exits.
With --health-auth-mode=required, the status code stays the same for every caller.
Only a caller with an operator token receives check messages, measure groups, version, and commit.
Every other caller receives check names and statuses only.
I tested with no token, a read-only token, an invalid token, and an operator token.
Suggested solution
Update the common /ready and /health schemas and paths to cover:
- The
503response on/ready, withstatus: startingand only the failing checks inchecks. uptimeon/ready, as{"value": <seconds>, "unit": "seconds"}.- The measure-group objects on checks, such as
progressandfailures. versionandcommiton/health.- A description note:
--health-auth-modeand--hardening-enabledreduce the response body for callers without operator permissions, and never change the status code.
After the change ships, docs-v2 closes influxdata/docs-v2#7286 and picks up the change through a normal sync.
- 主要言語
- Shell
- スター
- 18
- フォーク
- 9
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
influxdata/openapi のほかの issue
-
Add missing Cloud Routes keys対応中かも @jstirnaman が 3 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
influxdata/openapi#660 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
influxdata/openapi#657 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
influxdata/openapi#653 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
influxdata/openapi#240 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
influxdata/openapi#636 ·
influxdata/openapi の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
msys2/MSYS2-packages#6813 ·
メンテナーはふだん 1 日以内に返信
-
Laptop display stays disabled after unplugging external monitor: FALLBACK output counted as externalオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
[Bug]: Three default prefs with JSON values are never set (override.sh escapes their quotes twice)オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Floorp-Projects/Floorp#2913 ·
メンテナーはふだん 1 日以内に返信
-
agent-butler-finding agent-research-recommend bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jordansmall/spindrift#5258 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信