Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ESQL AVG query for non-runtime field #706

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading