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
Showing
12 changed files
with
513 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...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,39 @@ | ||
##################################################################################### | ||
# 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 | ||
# host: '`host`' | ||
# port: 7099 | ||
# clusterName: testCluster | ||
# extraMetrics: ["*"] | ||
# intervalSeconds: 1 | ||
# 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: "kafka plugin: Failed to connect to database .* at server .* Can't connect to kafka server on .* [(]111[)]" | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# append_pattern: true | ||
# body: The container is refusing kafka connections. |
38 changes: 38 additions & 0 deletions
38
...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,38 @@ | ||
##################################################################################### | ||
# 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 | ||
# host: '`host`' | ||
# port: 9099 | ||
# extraMetrics: ["*"] | ||
# intervalSeconds: 1 | ||
# 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: "kafka plugin: Failed to connect to Apache Kafka Consumer .* at server .* Can't connect to Kafka consumer on .* [(]111[)]" | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# append_pattern: true | ||
# body: The container is refusing Kafka connections. |
38 changes: 38 additions & 0 deletions
38
...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,38 @@ | ||
##################################################################################### | ||
# 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 | ||
# host: '`host`' | ||
# port: 8099 | ||
# extraMetrics: ["*"] | ||
# intervalSeconds: 1 | ||
# 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: "kafka plugin: Failed to connect to database .* at server .* Can't connect to kafka server on .* [(]111[)]" | ||
# first_only: true | ||
# log_record: | ||
# severity_text: info | ||
# append_pattern: true | ||
# body: The container is refusing kafka connections. |
35 changes: 35 additions & 0 deletions
35
...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,35 @@ | ||
##################################################################################### | ||
# 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 | ||
host: '`host`' | ||
port: 7099 | ||
clusterName: testCluster | ||
extraMetrics: ["*"] | ||
intervalSeconds: 1 | ||
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: "kafka plugin: Failed to connect to database .* at server .* Can't connect to kafka server on .* [(]111[)]" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: The container is refusing kafka connections. |
31 changes: 31 additions & 0 deletions
31
.../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,31 @@ | ||
{{ 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 | ||
host: '`host`' | ||
port: 7099 | ||
clusterName: testCluster | ||
extraMetrics: ["*"] | ||
intervalSeconds: 1 | ||
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: "kafka plugin: Failed to connect to database .* at server .* Can't connect to kafka server on .* [(]111[)]" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: The container is refusing kafka connections. |
34 changes: 34 additions & 0 deletions
34
...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,34 @@ | ||
##################################################################################### | ||
# 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 | ||
host: '`host`' | ||
port: 9099 | ||
extraMetrics: ["*"] | ||
intervalSeconds: 1 | ||
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: "kafka plugin: Failed to connect to Apache Kafka Consumer .* at server .* Can't connect to Kafka consumer on .* [(]111[)]" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: The container is refusing Kafka connections. |
30 changes: 30 additions & 0 deletions
30
...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,30 @@ | ||
{{ 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 | ||
host: '`host`' | ||
port: 9099 | ||
extraMetrics: ["*"] | ||
intervalSeconds: 1 | ||
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: "kafka plugin: Failed to connect to Apache Kafka Consumer .* at server .* Can't connect to Kafka consumer on .* [(]111[)]" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: The container is refusing Kafka connections. |
34 changes: 34 additions & 0 deletions
34
...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,34 @@ | ||
##################################################################################### | ||
# 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 | ||
host: '`host`' | ||
port: 8099 | ||
extraMetrics: ["*"] | ||
intervalSeconds: 1 | ||
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: "kafka plugin: Failed to connect to database .* at server .* Can't connect to kafka server on .* [(]111[)]" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: The container is refusing kafka connections. |
30 changes: 30 additions & 0 deletions
30
...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,30 @@ | ||
{{ 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 | ||
host: '`host`' | ||
port: 8099 | ||
extraMetrics: ["*"] | ||
intervalSeconds: 1 | ||
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: "kafka plugin: Failed to connect to database .* at server .* Can't connect to kafka server on .* [(]111[)]" | ||
first_only: true | ||
log_record: | ||
severity_text: info | ||
append_pattern: true | ||
body: The container is refusing kafka connections. |
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.