generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
ftl.async_call.queue_depth
and ftl.async_call.created
m…
…etrics (#2257) Adds 2 metrics: `ftl.async_call.queue_depth` is a gauge, so not all recorded values will appear in the stream. Locally, enqueued async calls complete so quickly that the gauge gets reset to 0 before the incremented value (1) can appear in the stream. I confirmed the enqueue `Record()` does work by temporarily removing the `Record()` call upon completion. ``` Metric #5 Descriptor: -> Name: ftl.async_call.queue_depth -> Description: number of async calls queued up -> Unit: 1 -> DataType: Gauge NumberDataPoints #0 StartTimestamp: 2024-08-05 18:13:41.233336 +0000 UTC Timestamp: 2024-08-05 18:14:01.232978 +0000 UTC Value: 0 ``` `ftl.async_call.created` is a simple counter: ``` Metric #0 Descriptor: -> Name: ftl.async_call.created -> Description: the number of times that an async call was created -> Unit: 1 -> DataType: Sum -> IsMonotonic: true -> AggregationTemporality: Cumulative NumberDataPoints #0 Data point attributes: -> ftl.async_call.origin: Str(sub:echo.sub) -> ftl.async_call.remaining_attempts: Int(0) -> ftl.async_call.verb.ref: Str(echo.echoSinkOne) -> ftl.module.name: Str(echo) -> ftl.status.succeeded: Bool(true) StartTimestamp: 2024-08-05 18:13:41.233319 +0000 UTC Timestamp: 2024-08-05 18:14:06.233054 +0000 UTC Value: 1 ``` Issue: #2194
- Loading branch information
Showing
9 changed files
with
112 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.