| /* |
| * 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. |
| * |
| */ |
| |
| package org.apache.skywalking.apm.agent.core.kafka; |
| |
| import java.util.HashMap; |
| import java.util.Map; |
| import org.apache.skywalking.apm.agent.core.boot.PluginConfig; |
| |
| public class KafkaReporterPluginConfig { |
| public static class Plugin { |
| @PluginConfig(root = KafkaReporterPluginConfig.class) |
| public static class Kafka { |
| /** |
| * <B>bootstrap_servers</B>: A list of host/port pairs to use for establishing the initial connection to the Kafka cluster. |
| * This list should be in the form host1:port1,host2:port2,... |
| */ |
| public static String BOOTSTRAP_SERVERS = "localhost:9092"; |
| |
| public static String TOPIC_METRICS = "skywalking-metrics"; |
| |
| public static String TOPIC_PROFILING = "skywalking-profilings"; |
| |
| public static String TOPIC_SEGMENT = "skywalking-segments"; |
| |
| public static String TOPIC_MANAGEMENT = "skywalking-managements"; |
| |
| public static String TOPIC_METER = "skywalking-meters"; |
| |
| public static String TOPIC_LOGGING = "skywalking-logging"; |
| |
| public static String NAMESPACE = ""; |
| |
| /** |
| * <B>producer_config</B>: the configuration of Kafka Producer. The format is: |
| * <code>plugin.kafka.producer_config[key] = value</code> |
| */ |
| public static Map<String, String> PRODUCER_CONFIG = new HashMap<>(); |
| |
| /** |
| * Configure Kafka Producer configuration in JSON format. Notice it will be overridden by |
| * `plugin.kafka.producer_config[key]`, if the key duplication. For example: |
| * <code>plugin.kafka.producer_config_json = {"batch.size":32768}</code> |
| */ |
| public static String PRODUCER_CONFIG_JSON = ""; |
| |
| /** |
| * Timeout period of reading topics from the Kafka server, the unit is second. |
| */ |
| public static int GET_TOPIC_TIMEOUT = 10; |
| } |
| } |
| } |