Skip to content

Add metric to count queries with script#923

Open
shivamg2017 wants to merge 1 commit intoopensearch-project:mainfrom
shivamg2017:script-metric
Open

Add metric to count queries with script#923
shivamg2017 wants to merge 1 commit intoopensearch-project:mainfrom
shivamg2017:script-metric

Conversation

@shivamg2017
Copy link

Description

This will emit metric script_search_count when script query is made.

Sample metric

metric: ImmutableMetricData{resource=Resource{schemaUrl=null, attributes={service.name="OpenSearch"}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=org.opensearch.telemetry, version=null, schemaUrl=null, attributes={}}, name=script_search_count, description=Count of search requests tagged by whether they contain a script, unit=count, type=DOUBLE_SUM, data=ImmutableSumData{points=[ImmutableDoublePointData{startEpochNanos=1773264920824685781, epochNanos=1773264980824673234, attributes={}, value=1.0, exemplars=[]}], monotonic=true, aggregationTemporality=DELTA}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant