skywalking/test/e2e-v2/cases/kafka/kafka-monitoring/otel-collector-config.yaml

56 lines
1.7 KiB
YAML

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
receivers:
prometheus:
config:
scrape_configs:
- job_name: "kafka-monitoring"
scrape_interval: 30s
static_configs:
- targets:
- broker1:7071
- broker2:7072
relabel_configs:
- source_labels: [ ]
target_label: cluster
replacement: kafka-cluster
- source_labels: [ __address__ ]
regex: (.+)
target_label: broker
replacement: $$1
processors:
batch:
exporters:
otlp:
# The OAP Server address
endpoint: "oap:11800"
# The config format of OTEL version prior to 0.34.0, eg. 0.29.0, should be:
# insecure: true
tls:
insecure: true
#insecure: true
# Exports data to the console
logging:
loglevel: debug
service:
pipelines:
metrics:
receivers: [prometheus]
processors: [batch]
exporters: [otlp, logging]