-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore] Change receiver config tests to unmarshal config only for tha…
…t component. (part4) (#14562) * [chore] Change receiver config tests to unmarshal config only for that component. (part4) - [x] pulsarreceiver - [x] rabbitmqreceiver - [x] redisreceiver - [x] riakreceiver - [x] saphanareceiver - [x] sapmreceiver - [x] signalfxreceiver - [x] simpleprometheusreceiver - [x] skywalkingreceiver - [x] solacereceiver * fixup! [chore] Change receiver config tests to unmarshal config only for that component. (part4)
- Loading branch information
Showing
21 changed files
with
449 additions
and
555 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
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 |
---|---|---|
@@ -1,25 +1,11 @@ | ||
receivers: | ||
pulsar: | ||
topic: otel-pulsar | ||
endpoint: pulsar://localhost:6500 | ||
consumer_name: otel-collector | ||
subscription: otel-collector | ||
tls_trust_certs_file_path: ca.pem | ||
tls_allow_insecure_connection: false | ||
auth: | ||
tls: | ||
cert_file: cert.pem | ||
key_file: key.pem | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
nop: | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [ pulsar ] | ||
processors: [ nop ] | ||
exporters: [ nop ] | ||
pulsar: | ||
topic: otel-pulsar | ||
endpoint: pulsar://localhost:6500 | ||
consumer_name: otel-collector | ||
subscription: otel-collector | ||
tls_trust_certs_file_path: ca.pem | ||
tls_allow_insecure_connection: false | ||
auth: | ||
tls: | ||
cert_file: cert.pem | ||
key_file: key.pem |
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 |
---|---|---|
@@ -1,19 +1,5 @@ | ||
receivers: | ||
rabbitmq: | ||
endpoint: http://localhost:15672 | ||
username: otelu | ||
password: $RABBITMQ_PASSWORD | ||
collection_interval: 10s | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
nop: | ||
|
||
service: | ||
pipelines: | ||
metrics: | ||
receivers: [rabbitmq] | ||
processors: [nop] | ||
exporters: [nop] | ||
rabbitmq: | ||
endpoint: http://localhost:15672 | ||
username: otelu | ||
password: $RABBITMQ_PASSWORD | ||
collection_interval: 10s |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
receivers: | ||
redis: | ||
endpoint: "localhost:6379" | ||
password: "test" | ||
collection_interval: 10s | ||
tls: | ||
insecure: true | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
nop: | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [redis] | ||
processors: [nop] | ||
exporters: [nop] | ||
redis: | ||
endpoint: "localhost:6379" | ||
password: "test" | ||
collection_interval: 10s | ||
tls: | ||
insecure: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,5 @@ | ||
receivers: | ||
riak: | ||
endpoint: http://localhost:8098 | ||
username: otelu | ||
password: $RIAK_PASSWORD | ||
collection_interval: 10s | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
nop: | ||
|
||
service: | ||
pipelines: | ||
metrics: | ||
receivers: [riak] | ||
processors: [nop] | ||
exporters: [nop] | ||
riak: | ||
endpoint: http://localhost:8098 | ||
username: otelu | ||
password: $RIAK_PASSWORD | ||
collection_interval: 10s |
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 |
---|---|---|
@@ -1,22 +1,8 @@ | ||
receivers: | ||
saphana: | ||
metrics: | ||
saphana.cpu.used: | ||
enabled: false | ||
endpoint: example.com:30015 | ||
username: otel | ||
password: password | ||
collection_interval: 2m | ||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
nop: | ||
|
||
service: | ||
pipelines: | ||
metrics: | ||
receivers: [saphana] | ||
processors: [nop] | ||
exporters: [nop] | ||
saphana: | ||
metrics: | ||
saphana.cpu.used: | ||
enabled: false | ||
endpoint: example.com:30015 | ||
username: otel | ||
password: password | ||
collection_interval: 2m |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,18 @@ | ||
receivers: | ||
# The following demonstrates initializing the default sapm receiver. | ||
# By sapm-http is enabled and the default endpoint is specified in factory.go | ||
sapm: | ||
# The following demonstrates specifying different endpoints. | ||
# The SAPM receiver connects to ports on all available network interfaces. | ||
# Ex: `endpoint: "7276"` is incorrect. | ||
# Ex: `endpoint: "1.2.3.4:7276"` and ":7276" is correct | ||
sapm/customname: | ||
endpoint: "0.0.0.0:7276" | ||
# The following demonstrates initializing the default sapm receiver. | ||
# By sapm-http is enabled and the default endpoint is specified in factory.go | ||
sapm: | ||
# The following demonstrates specifying different endpoints. | ||
# The SAPM receiver connects to ports on all available network interfaces. | ||
# Ex: `endpoint: "7276"` is incorrect. | ||
# Ex: `endpoint: "1.2.3.4:7276"` and ":7276" is correct | ||
sapm/customname: | ||
endpoint: "0.0.0.0:7276" | ||
|
||
# The following demonstrates how to specify TLS for the receiver. | ||
sapm/tls: | ||
tls: | ||
cert_file: /test.crt | ||
key_file: /test.key | ||
|
||
sapm/passthrough: | ||
access_token_passthrough: true | ||
|
||
|
||
processors: | ||
nop: | ||
|
||
exporters: | ||
nop: | ||
|
||
service: | ||
pipelines: | ||
traces: | ||
receivers: [sapm] | ||
processors: [nop] | ||
exporters: [nop] | ||
# The following demonstrates how to specify TLS for the receiver. | ||
sapm/tls: | ||
tls: | ||
cert_file: /test.crt | ||
key_file: /test.key | ||
|
||
sapm/passthrough: | ||
access_token_passthrough: true |
Oops, something went wrong.