Technologies/Elasticsearch/elasticsearch.node.script.compilations
ElasticsearchElasticsearchMetric

elasticsearch.node.script.compilations

Script compilations
Dimensions:None
Available on:OpenTelemetryOpenTelemetry (1)

Summary

Counts the total number of script compilations performed by the node, tracking how often Painless scripts are compiled from source. High compilation rates indicate cache misses or diverse script usage patterns. Excessive compilations consume CPU and may trigger compilation rate limiting (tracked separately), impacting queries and aggregations that rely on inline scripts for custom logic.

Interface Metrics (1)
OpenTelemetryOpenTelemetry
Total number of inline script compilations performed by the node.
Dimensions:None
Related Insights (2)
Script Compilation Cache Pressurewarning

Excessive script compilation from unique painless scripts can exhaust the compilation cache, trigger rate limiting, and impact query performance.

Script compilation limit triggered metric available for monitoringinfo