You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch is adding the /metrics endpoint to the project.
Differences with road-core/service:
* The metrics are prefixed with "ls_" instead of "ols_"
* The "provider_model_configuration" does not set the non-default
model/providers to 0 because we currently do not have a way to set a
default model/provider in the configuration. A TODO was left in the
code.
Supported metrics:
* rest_api_calls_total: Counter to track REST API calls
* response_duration_seconds: Histogram to measure how long it takes
to handle requests
* provider_model_configuration: Indicates what provider + model
customers are using
* llm_calls_total: How many LLM calls were made for each provider + model
* llm_calls_failures_total: How many LLM calls failed
* llm_calls_validation_errors_total: How many LLM calls had validation
errors
Missing metrics:
* llm_token_sent_total: How many tokens were sent
* llm_token_received_total: How many tokens were received
The above metrics are missing because token counting PR
(lightspeed-core#215) is not
merged yet.
Signed-off-by: Lucas Alvares Gomes <[email protected]>
0 commit comments