Skip to content

Add Prometheus metric for counting prompts by language

This commit adds a code_suggestions_prompt_language_total that allows us to plot the aggregate totals of languages fed to the Model Gateway.

This allows us to do something like this:

% curl -q -s http://localhost:8082 | grep lang | grep -v created
# HELP code_suggestions_prompt_language_total Language count by number
# TYPE code_suggestions_prompt_language_total counter
code_suggestions_prompt_language_total{lang="python"} 2.0
Edited by Stan Hu

Merge request reports