diff --git a/CHANGELOG.md b/CHANGELOG.md index edbc5ba9c5..d56ae66acc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 🛑 diff --git a/cmd/otelcol/config/collector/config.d.linux/receivers/mongodb.discovery.yaml b/cmd/otelcol/config/collector/config.d.linux/receivers/mongodb.discovery.yaml index 9467006c91..e1bea6456a 100644 --- a/cmd/otelcol/config/collector/config.d.linux/receivers/mongodb.discovery.yaml +++ b/cmd/otelcol/config/collector/config.d.linux/receivers/mongodb.discovery.yaml @@ -22,6 +22,7 @@ # hosts: # - endpoint: '`endpoint`' # transport: tcp +# timeout: 5s # status: # metrics: # - status: successful diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml index a2140b0aca..0217cfbc62 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml @@ -18,6 +18,7 @@ mongodb: hosts: - endpoint: '`endpoint`' transport: tcp + timeout: 5s status: metrics: - status: successful diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml.tmpl b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml.tmpl index 0d8a8771f2..f733d678fb 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml.tmpl +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml.tmpl @@ -14,6 +14,7 @@ hosts: - endpoint: '`endpoint`' transport: tcp + timeout: 5s status: metrics: - status: successful