Class PlanTelemetryManager
java.lang.Object
org.elasticsearch.xpack.esql.telemetry.PlanTelemetryManager
This class is responsible for publishing metrics related to ES|QL planning.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringQueries that use a command.static final StringNumber of times a command is used.static final Stringstatic final StringQueries that use a function.static final StringNumber of times a function is used.static final StringHistogram of linked projects per ES|QL query.static final StringQueries that use a setting.static final StringNumber of times a setting is used.static final Stringthe query was executed successfully or not -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(PlanTelemetry metrics, boolean success) Publishes the collected metrics to the meter registry
-
Field Details
-
FEATURE_METRICS_ALL
Number of times a command is used. If the command is used N times in a single query, this counter will be incremented by N- See Also:
-
FEATURE_METRICS
Queries that use a command. If a query uses a command N times, this will still be incremented by one only- See Also:
-
FUNCTION_METRICS_ALL
Number of times a function is used. If the function is used N times in a single query, this counter will be incremented by N- See Also:
-
FUNCTION_METRICS
Queries that use a function. If a query uses a function N times, this will still be incremented by one only- See Also:
-
SETTING_METRICS_ALL
Number of times a setting is used. If the setting is used N times in a single query, this counter will be incremented by N- See Also:
-
SETTING_METRICS
Queries that use a setting. If a query uses a setting N times, this will still be incremented by one only- See Also:
-
LINKED_PROJECTS_HISTOGRAM
Histogram of linked projects per ES|QL query.- See Also:
-
FEATURE_NAME
- See Also:
-
SUCCESS
the query was executed successfully or not- See Also:
-
-
Constructor Details
-
PlanTelemetryManager
-
-
Method Details
-
publish
Publishes the collected metrics to the meter registry
-