Skip to content

Commit

Permalink
[discovery] Fix crashing collector if discovered mongodb isn't reachable
Browse files Browse the repository at this point in the history
Reduce the connection timeout to 5 seconds. Otherwise, it's 60s for every mongodb query, which accumulates to a significant delay and makes the collector being killed in k8s.
  • Loading branch information
dmitryax committed May 30, 2024
1 parent ee32798 commit 9339d18
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### 🧰 Bug fixes 🧰

- (Splunk) `discovery`: Fix crashing collector if discovered mongodb isn't reachable in Kubernetes ([#4911](https://github.com/signalfx/splunk-otel-collector/pull/4911)))

## v0.101.0

### 🛑 Breaking changes 🛑
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# hosts:
# - endpoint: '`endpoint`'
# transport: tcp
# timeout: 5s
# status:
# metrics:
# - status: successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ mongodb:
hosts:
- endpoint: '`endpoint`'
transport: tcp
timeout: 5s
status:
metrics:
- status: successful
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
hosts:
- endpoint: '`endpoint`'
transport: tcp
timeout: 5s
status:
metrics:
- status: successful
Expand Down

0 comments on commit 9339d18

Please sign in to comment.