Cosmosdb query metrics for activation poll query #4688
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To move forward with activation poll uqery optimization for CosmosDB (#4684) we need to collect some mertics. This PR collects 2 such metrics
Description
This PR adds 2 new metrics which are computed for the activation list query used in
wsk activation pollcommandhistogram_cosmosdb_query_resultDelta_seconds- Records the time delta between current time and thestarttime of the last activation entry in returned list of activations. This helps in determining how much recent activation results are being returned to end users for the poll commandhistogram_cosmosdb_query_sinceDelta_seconds- Records the time delta between current time and thesincetime specified in list query used by activation pollBelow are the stats as recorded for Prometheus
Related issue and scope
My changes affect the following components
Types of changes
Checklist: