mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-29 18:53:04 +08:00
* Add search engine health Prometheus metric Expose mattermost_search_engine_status as a GaugeFunc that returns 0 when ES/OS is configured but unreachable, and 1 otherwise. This lets SRE build Grafana alerts for the case where the search backend silently falls back to database search (as happened on Hub with a misconfigured OpenSearch). The gauge reads the IsHealthy flag set by the engine watcher, so it fires on the first health-check failure (~60 s) rather than waiting for the engine to be fully stopped. * Test the new search engine status gauge