tabby/crates
Jonathan Poisson 6dabecc3ee
feat: add Prometheus support to Tabby. (#838)
* Added Prometheus support to Tabby.

1) Added `axum-prometheus` to Cargo.toml

2) Added `metrics.rs` as a simple route to produce a metrics endpoint with prometheus-formatted events

3) Added `/v1/metrics` endpoint with API doc entry

4) Added the `PrometheusLayer` to the root layers.

This change effectively allows for external Prometheus to scrape metrics from Tabby during execution in order to monitor operations (resources, timings and overall usage).

* changed application/text to text/plain to adhere to rfc1341

* Update Makefile

* Update Makefile

* Update Makefile

* Update Makefile

* Update Makefile

* Update Makefile

* - Reworked code to fit upstream changes
- Added Prometheus layer and handle to worker.rs

* Update CHANGELOG.md

* [autofix.ci] apply automated fixes

* Simplified worker metrics route definition

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-19 15:40:57 -08:00
..
http-api-bindings refactor: use Arc<dyn TextGeneration> and Arc<dyn CodeSearch> 2023-11-11 14:42:57 -08:00
juniper-axum refactor: use tarpc for easier worker <-> hub communication (#781) 2023-11-14 12:48:20 -08:00
llama-cpp-bindings fix: helpful message when llama.cpp submodule is not present (#719) (#775) 2023-11-13 07:51:46 +00:00
tabby feat: add Prometheus support to Tabby. (#838) 2023-11-19 15:40:57 -08:00
tabby-common feat: use remote code search in workers (#833) 2023-11-18 23:45:00 +00:00
tabby-download feat: match local model directory to MODEL_SPEC.md (#800) 2023-11-16 03:33:38 +00:00
tabby-inference Release 0.6.0-dev 2023-11-03 18:04:12 -07:00
tabby-scheduler fix: keep only direct dependency, clean up path (#827) 2023-11-18 08:50:16 +00:00