Skip to content

Commit

Permalink
Add kafkametricsreceiver deploy jmx collector to env:otel-staging (#4924
Browse files Browse the repository at this point in the history
)

* Add kafkaconsumerreceiver + dd kafka_consumer intg + deploy standalone jmx collector to staging

* remove uninstall

* remove logging exporter from pipeline
  • Loading branch information
mackjmr committed Nov 6, 2023
1 parent ed0e398 commit 9fe1859
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
17 changes: 17 additions & 0 deletions ci/scripts/ci-deploy-staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,23 @@ install_collector() {
--set-string image.tag="otelcolcontrib-v$CI_COMMIT_SHORT_SHA" \
--set-string image.repository="601427279990.dkr.ecr.us-east-1.amazonaws.com/otel-collector-contrib"
helm list --all-namespaces

if [ "$namespace" == "otel-staging" ]; then
install_deployment
fi
}

install_deployment() {
release_name_deployment="opentelemetry-collector-deployment"

# --install collector that fetches jmx metrics. The jmx receiver cannot be used in the daemonset deployment
# as this would lead to duplicate metrics.
helm --debug upgrade "${release_name_deployment}" -n "${namespace}" open-telemetry/opentelemetry-collector --install \
-f ./ci/values-jmx.yaml \
--set-string image.tag="otelcolcontrib-v$CI_COMMIT_SHORT_SHA" \
--set-string image.repository="601427279990.dkr.ecr.us-east-1.amazonaws.com/otel-collector-contrib" \
--set nodeSelector.alpha\\.eksctl\\.io/nodegroup-name=ng-3

}

###########################################################################################################
Expand Down
17 changes: 14 additions & 3 deletions ci/values-jmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ extraEnvs:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://$(OTEL_COLLECTOR_NAME):4317
- name: OTEL_RESOURCE_ATTRIBUTES
value: kafka_source=jmxreceiver
value: kafka_source=deploymentcol
config:
receivers:
jmx:
Expand All @@ -42,19 +42,30 @@ config:
endpoint: "opentelemetry-demo-zookeeper:2181"
collection_interval: 20s
initial_delay: 1s
kafkametrics:
brokers: "opentelemetry-demo-kafka:9092"
protocol_version: 2.0.0
scrapers:
- brokers
- topics
- consumers
exporters:
logging:
verbosity: detailed
otlp:
endpoint: ${env:OTEL_EXPORTER_OTLP_ENDPOINT}
tls:
insecure: true
processors:
resourcedetection/env:
detectors: [env]
batch:
send_batch_max_size: 1000
send_batch_size: 100
timeout: 10s
service:
pipelines:
metrics:
receivers: [jmx, jmx/jvm, jmx/consumer, jmx/producer, zookeeper]
processors: [batch]
receivers: [jmx, jmx/jvm, jmx/consumer, jmx/producer, zookeeper, kafkametrics]
processors: [batch, resourcedetection/env]
exporters: [otlp]

0 comments on commit 9fe1859

Please sign in to comment.