Zack Saadioui
8/27/2024
1
2
bash
pip install ollama
1
2
bash
pip install openlit
1
2
3
4
5
python
import openlit
openlit.init(
otlp_endpoint="YOUR_OTEL_ENDPOINT"
)
1
YOUR_OTEL_ENDPOINT
1
>=0.2.0
1
prometheus.yml
1
2
bash
prometheus --config.file=prometheus.yml
1
http://localhost:9090
1
2
promql
sum(rate(ollama_response_time_seconds_sum[5m])) by (model)
Copyright © Arsturn 2025