mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-20 10:24:03 +00:00
docs: remove analytics examples from Elasticsearch logging tutorial
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}'
|
||||
```
|
||||
Reference in New Issue
Block a user