docs: document exposed Prometheus metrics and health status encoding - #375
unseenmagik wants to merge 1 commit into
Conversation
opensearch_cluster_health_status encodes 2=green, 1=yellow, 0=red, which is the inverse of the elasticsearch_exporter convention. Without this documented, a steady 2 on a healthy cluster reads as a stuck RED value. Also documents the full OpenSearch gauge list and Photon's 30s internal refresh of the snapshot backing all of them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe README adds an ChangesOpenSearch metrics documentation
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This updates the OpenSearch metrics reference with health encoding, alert guidance, and snapshot refresh behavior. No merge-readiness risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The pull request documents the reported metric behaviour, but it does not implement the linked issue's expected fix for refreshing
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Documents the Prometheus metrics exposed when
ENABLE_METRICS=TRUE.opensearch_cluster_health_statusencodes2 = green, 1 = yellow, 0 = red, which is the inverse of theelasticsearch_exporterconvention where a higher value means worse health. The encoding is documented nowhere, and a healthy cluster reports a constant2indefinitely — which is what led me to file #374 as a stuck-gauge bug when the gauge was in fact correct.Adds to the Metrics section:
ApiMetricsTest< 2)Docs only, no behaviour change.
The metrics themselves come from Photon, not this image, so I opened komoot/photon#1123 to add the same information to the gauge
# HELPtext at the source.Closes #374
🤖 Generated with Claude Code