mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #463] [MERGED] feat: track deployment and service status with Prometheus #480
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/463
Author: @masci
Created: 2/13/2025
Status: ✅ Merged
Merged: 2/14/2025
Merged by: @masci
Base:
main← Head:massi/stats📝 Commits (3)
8cb030etrack deployment and service statusaa1d353ignore prometheus metrics definition in test coverage424e15bfix copypasta📊 Changes
4 files changed (+53 additions, -1 deletions)
View changed files
📝
llama_deploy/apiserver/deployment.py(+10 -0)📝
llama_deploy/apiserver/server.py(+4 -0)➕
llama_deploy/apiserver/stats.py(+36 -0)📝
pyproject.toml(+3 -1)📄 Description
After requesting the API Server to create a deployment, some time can pass in order to fetch the code, install dependencies and setting up all the LlamaDeploy components that are needed.
With this PR we track in Prometheus the intermediate states for the API Server itself, a deployment and its services.
We also need better logging but I won't add it here to ease the review.
Resulting metrics:
(when a state goes to 1.0 the others switch to 0.0)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.