Files
mattermost/server/enterprise
Alejandro García Montoro e7b60bbd10 MM-67291: ES health metric (#35844)
* 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
2026-04-13 21:45:48 +00:00
..
2024-01-08 10:47:24 -04:00
2024-01-08 10:47:24 -04:00

Enterprise

This folder contains source available enterprise code as well as import directives for closed source enterprise code.

Build Information

The source code in this folder is only included with builds specifying the enterprise or sourceavailble build tags. If you have a copy of https://github.com/mattermost/enterprise checked out as a peer to this repository, enterprise will be set automatically and the imports from both external_imports.go and local_imports.go will apply.

In a development environment (when BUILD_NUMBER is left undefined or explicitly set to dev), the sourceavailable build tag will be set automatically and only the imports from local_imports.go will apply.

License

See the LICENSE file for license rights and limitations. See also Mattermost Source Available License to learn more.

Contributing

Contributions to source available enterprise code are welcome. Please see CONTRIBUTING.md.