Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kafkametricsreceiver deploy jmx collector to env:otel-staging #4924

Merged
merged 3 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Loading