## Full Metrics Capture
Below is the full raw output captured from repeated executions of the same command.
### Command
```bash
wget -qO- http://localhost:4000/metrics \
| grep 'litellm_deployment_total_requests_total{' \
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ╭─ ~/Documents/litellm-proxy-memory-issues litellm_PROM…nconsistency *9 !15 ?12 ──────────────────────────────────── ✔ base 05:43:53 ─╮ | |
| ╰─ wget -qO- http://localhost:4000/metrics \ ─╯ | |
| | grep 'litellm_deployment_total_requests_total{' \ | |
| | awk -F'[{} ]' '{ | |
| print "Metric: " $1; | |
| print "Value: " $NF; | |
| print "Labels:"; | |
| n = split($2, a, ","); | |
| for (i = 1; i <= n; i++) print " " a[i]; | |
| print ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ╭─ ~/Documents/litellm-proxy-memory-issues litellm_PROM…nconsistency *9 !15 ?12 ──────────────────────────────────── ✔ base 05:43:07 ─╮ | |
| ╰─ wget -qO- http://localhost:4000/metrics \ ─╯ | |
| | grep 'litellm_deployment_total_requests_total{' \ | |
| | awk -F'[{} ]' '{ | |
| print "Metric: " $1; | |
| print "Value: " $NF; | |
| print "Labels:"; | |
| n = split($2, a, ","); | |
| for (i = 1; i <= n; i++) print " " a[i]; | |
| print ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ╭─ ~/Documents/litellm-proxy-memory-issues litellm_PROM…nconsistency *9 !15 ?12 ───────────────────────────── ✔ 5s base 10:57:06 ─╮ | |
| ╰─ wget -qO- http://localhost:4000/metrics \ ─╯ | |
| | grep 'litellm_deployment_total_requests_total{' \ | |
| | awk -F'[{} ]' '{ | |
| print "Metric: " $1; | |
| print "Value: " $NF; | |
| print "Labels:"; | |
| n = split($2, a, ","); | |
| for (i = 1; i <= n; i++) print " " a[i]; | |
| print ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ╭─ ~/Documents/litellm-proxy-memory-issues litellm_PROM…nconsistency *9 !15 ?12 ──────────────────────────── ✔ 16s base 10:44:04 ─╮ | |
| ╰─ wget -qO- http://localhost:4000/metrics \ ─╯ | |
| | grep 'litellm_deployment_total_requests_total{' \ | |
| | awk -F'[{} ]' '{ | |
| print "Metric: " $1; | |
| print "Value: " $NF; | |
| print "Labels:"; | |
| n = split($2, a, ","); | |
| for (i = 1; i <= n; i++) print " " a[i]; | |
| print ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pyenv shell 3.12.10 | |
| ╭─ ~/Documents/litellm-proxy-memory-issues loading ───────────────────────────────────────────────────────────────────── ✔ base 10:19:26 ─╮ | |
| ╰─ pyenv shell 3.12.10 ─╯ | |
| ╭─ ~/Documents/litellm-proxy-memory-issues litellm_PROM…nconsistency *9 ──────────────────────────────────────────── ✔ base 10:19:28 ─╮ | |
| ╰─ wget -qO- http://localhost:4000/metrics \ ─╯ ─╯ | |
| | grep 'litellm_deployment_total_requests_total{' \ | |
| | awk -F'[{} ]' '{ | |
| print "Metric: " $1; | |
| print "Value: " $NF; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm -rf "$PROMETHEUS_MULTIPROC_DIR" | |
| mkdir -p "$PROMETHEUS_MULTIPROC_DIR" | |
| litellm --config prometheus-config.yaml --num_workers 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| model_list: | |
| - model_name: db-openai-endpoint | |
| litellm_params: | |
| model: openai/* | |
| api_base: https://exampleopenaiendpoint-production-0ee2.up.railway.app/ | |
| litellm_settings: | |
| success_callback: ["prometheus"] | |
| failure_callback: ["prometheus"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| from locust import HttpUser, between, task | |
| AUDIO_FILE_BYTES = (Path(__file__).resolve().parent / "speech_small.mp3").read_bytes() | |
| class MyUser(HttpUser): | |
| """ | |
| Minimal Locust user for repeatedly hitting `/v1/audio/transcriptions`. |
NewerOlder