-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/googlecloudpubsub] Turn noisy warn in reset metric (#37571)
- Loading branch information
1 parent
54896e7
commit 04b008d
Showing
14 changed files
with
416 additions
and
179 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
change_type: enhancement | ||
|
||
component: googlecloudpubsubreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Turn noisy `warn` log about Pub/Sub servers into `debug`, and turn the reset count into a metric | ||
|
||
issues: [37571] | ||
|
||
subtext: | | ||
The receiver uses the Google Cloud Pub/Sub StreamingPull API and keeps a open connection. The Pub/Sub servers | ||
recurrently close the connection after a time period to avoid a long-running sticky connection. Before the | ||
receiver logged `warn` log lines everytime this happened. These log lines are moved to debug so that fleets with | ||
lots of collectors with the receiver don't span logs at warn level. To keep track of the resets, whenever a | ||
connection reset happens a `otelcol_receiver_googlecloudpubsub_stream_restarts` metric is increased by one. | ||
change_logs: [user] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[comment]: <> (Code generated by mdatagen. DO NOT EDIT.) | ||
|
||
# googlecloudpubsub | ||
|
||
## Internal Telemetry | ||
|
||
The following telemetry is emitted by this component. | ||
|
||
### otelcol_receiver.googlecloudpubsub.stream_restarts | ||
|
||
Number of times the stream (re)starts due to a Pub/Sub servers connection close | ||
|
||
The receiver uses the Google Cloud Pub/Sub StreamingPull API and keeps a open connection. The Pub/Sub servers | ||
recurrently close the connection after a time period to avoid a long-running sticky connection. This metric | ||
counts the number of the resets that occurred during the lifetime of the container. | ||
|
||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| 1 | Sum | Int | true | |
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
Oops, something went wrong.