Skip to content

Commit 7f6f08d

Browse files
authored
Set hosts in MongoDB config from autodiscover endpoint (#4871)
1 parent adaa3e0 commit 7f6f08d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cmd/otelcol/config/collector/config.d.linux/receivers/mongodb.discovery.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
# tls:
2020
# insecure_skip_verify: true
2121
# insecure: false
22+
# hosts:
23+
# - endpoint: '`endpoint`'
24+
# transport: tcp
2225
# status:
2326
# metrics:
2427
# - status: successful

internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ mongodb:
1515
tls:
1616
insecure_skip_verify: true
1717
insecure: false
18+
hosts:
19+
- endpoint: '`endpoint`'
20+
transport: tcp
1821
status:
1922
metrics:
2023
- status: successful

internal/confmapprovider/discovery/bundle/bundle.d/receivers/mongodb.discovery.yaml.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
tls:
1212
insecure_skip_verify: true
1313
insecure: false
14+
hosts:
15+
- endpoint: '`endpoint`'
16+
transport: tcp
1417
status:
1518
metrics:
1619
- status: successful

0 commit comments

Comments
 (0)