File tree Expand file tree Collapse file tree 3 files changed +48
-9
lines changed
cmd/otelcol/config/collector/config.d.linux/receivers
internal/confmapprovider/discovery/bundle/bundle.d/receivers Expand file tree Collapse file tree 3 files changed +48
-9
lines changed Original file line number Diff line number Diff line change 16
16
# default:
17
17
# username: splunk.discovery.default
18
18
# password: splunk.discovery.default
19
- # tls:
20
- # insecure: true
21
- # insecure_skip_verify: true
22
19
# status:
23
20
# metrics:
24
21
# - status: successful
47
44
# `SPLUNK_DISCOVERY_RECEIVERS_mongodb_CONFIG_username="<username>"` and
48
45
# `SPLUNK_DISCOVERY_RECEIVERS_mongodb_CONFIG_password="<password>"` environment variables.
49
46
# - status: partial
47
+ # regexp: 'SSL handshake received but server is started without SSL support'
48
+ # log_record:
49
+ # append_pattern: true
50
+ # body: >-
51
+ # Make sure the target database has SSL enabled or set insecure using the
52
+ # `--set splunk.discovery.receivers.mongodb.config.tls::insecure="<boolean>"` command or the
53
+ # `SPLUNK_DISCOVERY_RECEIVERS_mongodb_CONFIG_tls_x3a__x3a_insecure="<boolean>"` environment variable.
54
+ # - status: partial
50
55
# regexp: '.* failed to fetch index stats metrics: (Unauthorized) not authorized on admin to execute command .*'
51
56
# log_record:
52
57
# append_pattern: true
53
58
# body: >-
54
59
# Make sure the account used to access Mongodb has been given a clusterMonitor role in order to collect metrics.
55
60
# `db.grantRolesToUser('someUser', [{ role: 'clusterMonitor', db: 'admin' }])`
61
+ # - status: partial
62
+ # regexp: '.* tls: failed to verify certificate: .*'
63
+ # log_record:
64
+ # append_pattern: true
65
+ # body: >-
66
+ # Make sure the target database's TLS cert and key files are set appropriately.
67
+ # `--set splunk.discovery.receivers.mongodb.config.tls::key_file="<string>"` command
68
+ # `--set splunk.discovery.receivers.mongodb.config.tls::cert_file="<string>"` command
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ mongodb:
12
12
default :
13
13
username : splunk.discovery.default
14
14
password : splunk.discovery.default
15
- tls :
16
- insecure : true
17
- insecure_skip_verify : true
18
15
status :
19
16
metrics :
20
17
- status : successful
@@ -42,10 +39,26 @@ mongodb:
42
39
`--set splunk.discovery.receivers.mongodb.config.password="<password>"` or
43
40
`SPLUNK_DISCOVERY_RECEIVERS_mongodb_CONFIG_username="<username>"` and
44
41
`SPLUNK_DISCOVERY_RECEIVERS_mongodb_CONFIG_password="<password>"` environment variables.
42
+ - status : partial
43
+ regexp : ' SSL handshake received but server is started without SSL support'
44
+ log_record :
45
+ append_pattern : true
46
+ body : >-
47
+ Make sure the target database has SSL enabled or set insecure using the
48
+ `--set splunk.discovery.receivers.mongodb.config.tls::insecure="<boolean>"` command or the
49
+ `SPLUNK_DISCOVERY_RECEIVERS_mongodb_CONFIG_tls_x3a__x3a_insecure="<boolean>"` environment variable.
45
50
- status : partial
46
51
regexp : ' .* failed to fetch index stats metrics: (Unauthorized) not authorized on admin to execute command .*'
47
52
log_record :
48
53
append_pattern : true
49
54
body : >-
50
55
Make sure the account used to access Mongodb has been given a clusterMonitor role in order to collect metrics.
51
56
`db.grantRolesToUser('someUser', [{ role: 'clusterMonitor', db: 'admin' }])`
57
+ - status : partial
58
+ regexp : ' .* tls: failed to verify certificate: .*'
59
+ log_record :
60
+ append_pattern : true
61
+ body : >-
62
+ Make sure the target database's TLS cert and key files are set appropriately.
63
+ `--set splunk.discovery.receivers.mongodb.config.tls::key_file="<string>"` command
64
+ `--set splunk.discovery.receivers.mongodb.config.tls::cert_file="<string>"` command
Original file line number Diff line number Diff line change 8
8
default:
9
9
username: {{ defaultValue }}
10
10
password: {{ defaultValue }}
11
- tls:
12
- insecure: true
13
- insecure_skip_verify: true
14
11
status:
15
12
metrics:
16
13
- status: successful
38
35
`--set {{ configProperty "password" "<password>" }}` or
39
36
`{{ configPropertyEnvVar "username" "<username>" }}` and
40
37
`{{ configPropertyEnvVar "password" "<password>" }}` environment variables.
38
+ - status: partial
39
+ regexp: 'SSL handshake received but server is started without SSL support'
40
+ log_record:
41
+ append_pattern: true
42
+ body: >-
43
+ Make sure the target database has SSL enabled or set insecure using the
44
+ `--set {{ configProperty "tls::insecure" "<boolean>" }}` command or the
45
+ `{{ configPropertyEnvVar "tls::insecure" "<boolean>" }}` environment variable.
41
46
- status: partial
42
47
regexp: '.* failed to fetch index stats metrics: (Unauthorized) not authorized on admin to execute command .*'
43
48
log_record:
44
49
append_pattern: true
45
50
body: >-
46
51
Make sure the account used to access Mongodb has been given a clusterMonitor role in order to collect metrics.
47
52
`db.grantRolesToUser('someUser', [{ role: 'clusterMonitor', db: 'admin' }])`
53
+ - status: partial
54
+ regexp: '.* tls: failed to verify certificate: .*'
55
+ log_record:
56
+ append_pattern: true
57
+ body: >-
58
+ Make sure the target database's TLS cert and key files are set appropriately.
59
+ `--set {{ configProperty "tls::key_file" "<string>" }}` command
60
+ `--set {{ configProperty "tls::cert_file" "<string>" }}` command
You can’t perform that action at this time.
0 commit comments