Skip to content

Commit

Permalink
Add ESQL AVG query for non-runtime field (#706)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbanasiak authored Nov 19, 2024
1 parent 84f0edb commit 5a90649
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions elastic/logs/operations/esql.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,14 @@
"body": {{ p_esql_ccs_extra_body | tojson }}
{%- endif %}
},
{
"name": "esql_avg_log_offset",
"operation-type": "esql",
"query": "FROM {{p_esql_target_prefix}}logs-* | STATS AVG(log.offset)"
{%- if p_esql_ccs_extra_body %},
"body": {{ p_esql_ccs_extra_body | tojson }}
{%- endif %}
},
{
"name": "esql_avg_doc_size",
"operation-type": "esql",
Expand Down
7 changes: 7 additions & 0 deletions elastic/logs/tasks/many-clusters-esql-ccs-queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@
"iterations": 50,
"tags": ["esql", "limit50"]
},
{
"operation": "esql_avg_log_offset",
"clients": 1,
"warmup-iterations": 1,
"iterations": 1,
"tags": ["esql", "avg"]
},
{
"operation": "esql_avg_doc_size",
"clients": 1,
Expand Down

0 comments on commit 5a90649

Please sign in to comment.