From 397a8882b3fa38fecd3ed856539a7c2662478de1 Mon Sep 17 00:00:00 2001 From: machinespeak Date: Tue, 7 Nov 2023 10:32:21 -0500 Subject: [PATCH] fix typo caught by test --- .../receivers/smartagent-collectd-kafka-broker.discovery.yaml | 2 +- .../receivers/smartagent-collectd-kafka-consumer.discovery.yaml | 2 +- .../receivers/smartagent-collectd-kafka-producer.discovery.yaml | 2 +- .../receivers/smartagent-collectd-kafka-broker.discovery.yaml | 2 +- .../smartagent-collectd-kafka-broker.discovery.yaml.tmpl | 2 +- .../receivers/smartagent-collectd-kafka-consumer.discovery.yaml | 2 +- .../smartagent-collectd-kafka-consumer.discovery.yaml.tmpl | 2 +- .../receivers/smartagent-collectd-kafka-producer.discovery.yaml | 2 +- .../smartagent-collectd-kafka-producer.discovery.yaml.tmpl | 2 +- tests/receivers/smartagent/collectd-kafka/bundled_test.go | 1 - 10 files changed, 9 insertions(+), 10 deletions(-) diff --git a/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-broker.discovery.yaml b/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-broker.discovery.yaml index 6677698901..e2e0d668fb 100644 --- a/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-broker.discovery.yaml +++ b/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-broker.discovery.yaml @@ -32,7 +32,7 @@ # log_record: # severity_text: info # append_pattern: true -# body: The container is unable to connnect to the MBean server to retreive kafka metrics. +# body: The container is unable to connnect to the MBean server to retrieve kafka metrics. # - regexp: "java.rmi.UnknownHostException: Unknown host" # first_only: true # log_record: diff --git a/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-consumer.discovery.yaml b/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-consumer.discovery.yaml index d555dd3ba4..4f405df1bc 100644 --- a/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-consumer.discovery.yaml +++ b/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-consumer.discovery.yaml @@ -32,7 +32,7 @@ # log_record: # severity_text: info # append_pattern: true -# body: The container is unable to connnect to the MBean server to retreive kafka metrics. +# body: The container is unable to connnect to the MBean server to retrieve kafka metrics. # - regexp: "java.rmi.UnknownHostException: Unknown host" # first_only: true # log_record: diff --git a/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-producer.discovery.yaml b/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-producer.discovery.yaml index af10362e88..e153eae32c 100644 --- a/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-producer.discovery.yaml +++ b/cmd/otelcol/config/collector/config.d.linux/receivers/smartagent-collectd-kafka-producer.discovery.yaml @@ -32,7 +32,7 @@ # log_record: # severity_text: info # append_pattern: true -# body: The container is unable to connnect to the MBean server to retreive kafka metrics. +# body: The container is unable to connnect to the MBean server to retrieve kafka metrics. # - regexp: "java.rmi.UnknownHostException: Unknown host" # first_only: true # log_record: diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml index dce7fb5948..0c3a479bc3 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml @@ -28,7 +28,7 @@ smartagent/collectd/kafka_broker: log_record: severity_text: info append_pattern: true - body: The container is unable to connnect to the MBean server to retreive kafka metrics. + body: The container is unable to connnect to the MBean server to retrieve kafka metrics. - regexp: "java.rmi.UnknownHostException: Unknown host" first_only: true log_record: diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml.tmpl b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml.tmpl index a107290f8b..7c9c308200 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml.tmpl +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml.tmpl @@ -24,7 +24,7 @@ log_record: severity_text: info append_pattern: true - body: The container is unable to connnect to the MBean server to retreive kafka metrics. + body: The container is unable to connnect to the MBean server to retrieve kafka metrics. - regexp: "java.rmi.UnknownHostException: Unknown host" first_only: true log_record: diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml index 85d3ec9dcd..637acb63dc 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml @@ -28,7 +28,7 @@ smartagent/collectd/kafka_consumer: log_record: severity_text: info append_pattern: true - body: The container is unable to connnect to the MBean server to retreive kafka metrics. + body: The container is unable to connnect to the MBean server to retrieve kafka metrics. - regexp: "java.rmi.UnknownHostException: Unknown host" first_only: true log_record: diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml.tmpl b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml.tmpl index 9f0eda4b25..96424c7efa 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml.tmpl +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml.tmpl @@ -24,7 +24,7 @@ log_record: severity_text: info append_pattern: true - body: The container is unable to connnect to the MBean server to retreive kafka metrics. + body: The container is unable to connnect to the MBean server to retrieve kafka metrics. - regexp: "java.rmi.UnknownHostException: Unknown host" first_only: true log_record: diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml index 208fb91ac0..b16b789a89 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml @@ -28,7 +28,7 @@ smartagent/collectd/kafka_producer: log_record: severity_text: info append_pattern: true - body: The container is unable to connnect to the MBean server to retreive kafka metrics. + body: The container is unable to connnect to the MBean server to retrieve kafka metrics. - regexp: "java.rmi.UnknownHostException: Unknown host" first_only: true log_record: diff --git a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml.tmpl b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml.tmpl index ece087e84d..8910a6f0e7 100644 --- a/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml.tmpl +++ b/internal/confmapprovider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml.tmpl @@ -24,7 +24,7 @@ log_record: severity_text: info append_pattern: true - body: The container is unable to connnect to the MBean server to retreive kafka metrics. + body: The container is unable to connnect to the MBean server to retrieve kafka metrics. - regexp: "java.rmi.UnknownHostException: Unknown host" first_only: true log_record: diff --git a/tests/receivers/smartagent/collectd-kafka/bundled_test.go b/tests/receivers/smartagent/collectd-kafka/bundled_test.go index 7e5a88f664..ba73229bf5 100644 --- a/tests/receivers/smartagent/collectd-kafka/bundled_test.go +++ b/tests/receivers/smartagent/collectd-kafka/bundled_test.go @@ -33,7 +33,6 @@ var kafka = testutils.NewContainer().WithContext( var kafkaZookeeper = testutils.NewContainer().WithImage("zookeeper:3.5").WithName("zookeeper").WithNetworks("kafka").WithExposedPorts("2181:2181").WillWaitForPorts("2181") - func TestBrokerMetrics(t *testing.T) { testutils.SkipIfNotContainerTest(t) if runtime.GOOS == "darwin" {