forked from signalfx/splunk-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb8e08e
commit 23c6ff9
Showing
14 changed files
with
562 additions
and
1 deletion.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...config/collector/config.d.linux/receivers/smartagent-collectd-kafka-broker.discovery.yaml
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
##################################################################################### | ||
# This file is generated by the Splunk Distribution of the OpenTelemetry Collector. # | ||
# # | ||
# It reflects the default configuration bundled in the Collector executable for use # | ||
# in discovery mode (--discovery) and is provided for reference or customization. # | ||
# Please note that any changes made to this file will need to be reconciled during # | ||
# upgrades of the Collector. # | ||
##################################################################################### | ||
# smartagent/collectd/kafka_broker: | ||
# enabled: true | ||
# rule: | ||
# docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-broker"}) and not (command matches "splunk.discovery") | ||
# host_observer: type == "hostport" and command matches "(?i)kafka-broker" | ||
# k8s_observer: type == "port" and pod.name matches "(?i)kafka-broker" | ||
# config: | ||
# default: | ||
# type: collectd/kafka | ||
# extraMetrics: ["*"] | ||
# isolatedCollectd: true | ||
# status: | ||
# metrics: | ||
# successful: | ||
# - strict: counter.kafka-bytes-in | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# body: smartagent/collectd/kafka receiver is working! | ||
# statements: | ||
# failed: | ||
# - regexp: "Creating MBean server connection failed" | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# append_pattern: true | ||
# 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: | ||
# severity_text: info | ||
# append_pattern: true | ||
# body: Kafka host was discovered but is unresolvable. | ||
# partial: | ||
# - regexp: "clusterName is a required field" | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# append_pattern: true | ||
# body: >- | ||
# Make sure your Kafka clusterName is correctly specified using the | ||
# `--set splunk.discovery.receivers.smartagent/collectd/kafka_broker.config.clusterName="<clusterName>"` command or the | ||
# `SPLUNK_DISCOVERY_RECEIVERS_smartagent_x2f_collectd_x2f_kafka_x5f_broker_CONFIG_clusterName="<clusterName>"` environment variable. |
41 changes: 41 additions & 0 deletions
41
...nfig/collector/config.d.linux/receivers/smartagent-collectd-kafka-consumer.discovery.yaml
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
##################################################################################### | ||
# This file is generated by the Splunk Distribution of the OpenTelemetry Collector. # | ||
# # | ||
# It reflects the default configuration bundled in the Collector executable for use # | ||
# in discovery mode (--discovery) and is provided for reference or customization. # | ||
# Please note that any changes made to this file will need to be reconciled during # | ||
# upgrades of the Collector. # | ||
##################################################################################### | ||
# smartagent/collectd/kafka_consumer: | ||
# enabled: true | ||
# rule: | ||
# docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-consumer"}) and not (command matches "splunk.discovery") | ||
# host_observer: type == "hostport" and command matches "(?i)kafka-consumer" | ||
# k8s_observer: type == "port" and pod.name matches "(?i)kafka-consumer" | ||
# config: | ||
# default: | ||
# type: collectd/kafka_consumer | ||
# extraMetrics: ["*"] | ||
# isolatedCollectd: true | ||
# status: | ||
# metrics: | ||
# successful: | ||
# - strict: gauge.kafka.consumer.bytes-consumed-rate | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# body: smartagent/collectd/kafka_consumer receiver is working! | ||
# statements: | ||
# failed: | ||
# - regexp: "Creating MBean server connection failed" | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# append_pattern: true | ||
# 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: | ||
# severity_text: info | ||
# append_pattern: true | ||
# body: Kafka host was discovered but is unresolvable. |
41 changes: 41 additions & 0 deletions
41
...nfig/collector/config.d.linux/receivers/smartagent-collectd-kafka-producer.discovery.yaml
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
##################################################################################### | ||
# This file is generated by the Splunk Distribution of the OpenTelemetry Collector. # | ||
# # | ||
# It reflects the default configuration bundled in the Collector executable for use # | ||
# in discovery mode (--discovery) and is provided for reference or customization. # | ||
# Please note that any changes made to this file will need to be reconciled during # | ||
# upgrades of the Collector. # | ||
##################################################################################### | ||
# smartagent/collectd/kafka_producer: | ||
# enabled: true | ||
# rule: | ||
# docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-producer"}) and not (command matches "splunk.discovery") | ||
# host_observer: type == "hostport" and command matches "(?i)kafka-producer" | ||
# k8s_observer: type == "port" and pod.name matches "(?i)kafka-producer" | ||
# config: | ||
# default: | ||
# type: collectd/kafka_producer | ||
# extraMetrics: ["*"] | ||
# isolatedCollectd: true | ||
# status: | ||
# metrics: | ||
# successful: | ||
# - strict: gauge.kafka.producer.byte-rate | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# body: smartagent/collectd/kafka_producer receiver is working! | ||
# statements: | ||
# failed: | ||
# - regexp: "Creating MBean server connection failed" | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# append_pattern: true | ||
# 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: | ||
# severity_text: info | ||
# append_pattern: true | ||
# body: Kafka host was discovered but is unresolvable. |
47 changes: 47 additions & 0 deletions
47
...vider/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
##################################################################################### | ||
# Do not edit manually! # | ||
# All changes must be made to associated .tmpl file before running 'make bundle.d'. # | ||
##################################################################################### | ||
smartagent/collectd/kafka_broker: | ||
enabled: true | ||
rule: | ||
docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-broker"}) and not (command matches "splunk.discovery") | ||
host_observer: type == "hostport" and command matches "(?i)kafka-broker" | ||
k8s_observer: type == "port" and pod.name matches "(?i)kafka-broker" | ||
config: | ||
default: | ||
type: collectd/kafka | ||
extraMetrics: ["*"] | ||
isolatedCollectd: true | ||
status: | ||
metrics: | ||
successful: | ||
- strict: counter.kafka-bytes-in | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
body: smartagent/collectd/kafka receiver is working! | ||
statements: | ||
failed: | ||
- regexp: "Creating MBean server connection failed" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
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: | ||
severity_text: info | ||
append_pattern: true | ||
body: Kafka host was discovered but is unresolvable. | ||
partial: | ||
- regexp: "clusterName is a required field" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: >- | ||
Make sure your Kafka clusterName is correctly specified using the | ||
`--set splunk.discovery.receivers.smartagent/collectd/kafka_broker.config.clusterName="<clusterName>"` command or the | ||
`SPLUNK_DISCOVERY_RECEIVERS_smartagent_x2f_collectd_x2f_kafka_x5f_broker_CONFIG_clusterName="<clusterName>"` environment variable. |
43 changes: 43 additions & 0 deletions
43
.../discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-broker.discovery.yaml.tmpl
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{ receiver "smartagent/collectd/kafka_broker" }}: | ||
enabled: true | ||
rule: | ||
docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-broker"}) and not (command matches "splunk.discovery") | ||
host_observer: type == "hostport" and command matches "(?i)kafka-broker" | ||
k8s_observer: type == "port" and pod.name matches "(?i)kafka-broker" | ||
config: | ||
default: | ||
type: collectd/kafka | ||
extraMetrics: ["*"] | ||
isolatedCollectd: true | ||
status: | ||
metrics: | ||
successful: | ||
- strict: counter.kafka-bytes-in | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
body: smartagent/collectd/kafka receiver is working! | ||
statements: | ||
failed: | ||
- regexp: "Creating MBean server connection failed" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
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: | ||
severity_text: info | ||
append_pattern: true | ||
body: Kafka host was discovered but is unresolvable. | ||
partial: | ||
- regexp: "clusterName is a required field" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: >- | ||
Make sure your Kafka clusterName is correctly specified using the | ||
`--set {{ configProperty "clusterName" "<clusterName>" }}` command or the | ||
`{{ configPropertyEnvVar "clusterName" "<clusterName>" }}` environment variable. |
37 changes: 37 additions & 0 deletions
37
...der/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
##################################################################################### | ||
# Do not edit manually! # | ||
# All changes must be made to associated .tmpl file before running 'make bundle.d'. # | ||
##################################################################################### | ||
smartagent/collectd/kafka_consumer: | ||
enabled: true | ||
rule: | ||
docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-consumer"}) and not (command matches "splunk.discovery") | ||
host_observer: type == "hostport" and command matches "(?i)kafka-consumer" | ||
k8s_observer: type == "port" and pod.name matches "(?i)kafka-consumer" | ||
config: | ||
default: | ||
type: collectd/kafka_consumer | ||
extraMetrics: ["*"] | ||
isolatedCollectd: true | ||
status: | ||
metrics: | ||
successful: | ||
- strict: gauge.kafka.consumer.bytes-consumed-rate | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
body: smartagent/collectd/kafka_consumer receiver is working! | ||
statements: | ||
failed: | ||
- regexp: "Creating MBean server connection failed" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
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: | ||
severity_text: info | ||
append_pattern: true | ||
body: Kafka host was discovered but is unresolvable. |
33 changes: 33 additions & 0 deletions
33
...iscovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-consumer.discovery.yaml.tmpl
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{ receiver "smartagent/collectd/kafka_consumer" }}: | ||
enabled: true | ||
rule: | ||
docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-consumer"}) and not (command matches "splunk.discovery") | ||
host_observer: type == "hostport" and command matches "(?i)kafka-consumer" | ||
k8s_observer: type == "port" and pod.name matches "(?i)kafka-consumer" | ||
config: | ||
default: | ||
type: collectd/kafka_consumer | ||
extraMetrics: ["*"] | ||
isolatedCollectd: true | ||
status: | ||
metrics: | ||
successful: | ||
- strict: gauge.kafka.consumer.bytes-consumed-rate | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
body: smartagent/collectd/kafka_consumer receiver is working! | ||
statements: | ||
failed: | ||
- regexp: "Creating MBean server connection failed" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
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: | ||
severity_text: info | ||
append_pattern: true | ||
body: Kafka host was discovered but is unresolvable. |
37 changes: 37 additions & 0 deletions
37
...der/discovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
##################################################################################### | ||
# Do not edit manually! # | ||
# All changes must be made to associated .tmpl file before running 'make bundle.d'. # | ||
##################################################################################### | ||
smartagent/collectd/kafka_producer: | ||
enabled: true | ||
rule: | ||
docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-producer"}) and not (command matches "splunk.discovery") | ||
host_observer: type == "hostport" and command matches "(?i)kafka-producer" | ||
k8s_observer: type == "port" and pod.name matches "(?i)kafka-producer" | ||
config: | ||
default: | ||
type: collectd/kafka_producer | ||
extraMetrics: ["*"] | ||
isolatedCollectd: true | ||
status: | ||
metrics: | ||
successful: | ||
- strict: gauge.kafka.producer.byte-rate | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
body: smartagent/collectd/kafka_producer receiver is working! | ||
statements: | ||
failed: | ||
- regexp: "Creating MBean server connection failed" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
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: | ||
severity_text: info | ||
append_pattern: true | ||
body: Kafka host was discovered but is unresolvable. |
33 changes: 33 additions & 0 deletions
33
...iscovery/bundle/bundle.d/receivers/smartagent-collectd-kafka-producer.discovery.yaml.tmpl
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{{ receiver "smartagent/collectd/kafka_producer" }}: | ||
enabled: true | ||
rule: | ||
docker_observer: type == "container" and any([name, image, command], {# matches "(?i)kafka-producer"}) and not (command matches "splunk.discovery") | ||
host_observer: type == "hostport" and command matches "(?i)kafka-producer" | ||
k8s_observer: type == "port" and pod.name matches "(?i)kafka-producer" | ||
config: | ||
default: | ||
type: collectd/kafka_producer | ||
extraMetrics: ["*"] | ||
isolatedCollectd: true | ||
status: | ||
metrics: | ||
successful: | ||
- strict: gauge.kafka.producer.byte-rate | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
body: smartagent/collectd/kafka_producer receiver is working! | ||
statements: | ||
failed: | ||
- regexp: "Creating MBean server connection failed" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
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: | ||
severity_text: info | ||
append_pattern: true | ||
body: Kafka host was discovered but is unresolvable. |
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
Oops, something went wrong.