mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
docs: remove analytics examples from Elasticsearch logging tutorial
This commit is contained in:
parent
05514681cc
commit
11396b936a
1 changed files with 0 additions and 38 deletions
|
|
@ -233,42 +233,4 @@ litellm_settings:
|
|||
general_settings:
|
||||
master_key: sk-1234
|
||||
otel: true
|
||||
```
|
||||
|
||||
## Analytics Examples
|
||||
|
||||
**Query traces by service:**
|
||||
```bash
|
||||
curl -X GET "localhost:9200/_search" -H "Content-Type: application/json" -d '{
|
||||
"query": {
|
||||
"term": {"resource.service.name": "litellm"}
|
||||
},
|
||||
"size": 10
|
||||
}'
|
||||
```
|
||||
|
||||
**Filter by LLM model:**
|
||||
```bash
|
||||
curl -X GET "localhost:9200/_search" -H "Content-Type: application/json" -d '{
|
||||
"query": {
|
||||
"term": {"attributes.model": "gpt-4.1"}
|
||||
},
|
||||
"size": 10
|
||||
}'
|
||||
```
|
||||
|
||||
**Aggregate response times:**
|
||||
```bash
|
||||
curl -X GET "localhost:9200/_search" -H "Content-Type: application/json" -d '{
|
||||
"size": 0,
|
||||
"aggs": {
|
||||
"avg_duration": {
|
||||
"avg": {
|
||||
"script": {
|
||||
"source": "(doc[\"end_time\"].value - doc[\"start_time\"].value) / 1000000"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue