如何映射汇合。'前缀变量适用于正确的Docker Envs?

发布于 2025-02-12 20:22:24 字数 191 浏览 1 评论 0原文

假设我需要更改confluent.security.event.logger.exporter.kafka.topic.replicasconfluent.metrics.reporter.reporter.topic.replicas。 如何通过Envs将它们设置在Docker-Compose文件中?

Let's say I need to change confluent.security.event.logger.exporter.kafka.topic.replicas or confluent.metrics.reporter.topic.replicas.
How can I set them in my docker-compose file via ENVs?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

濫情▎り 2025-02-19 20:22:24

在这里描述了 https://docs.confluent.io/platform/current/current/current/docker/docker/config-reference.html#confluent-enterprise-enterprise-ak-configuration

For the Enterprise Kafka (cp-server) image, convert the kafka.properties file variables as below and use them as environment variables:

    Prefix with KAFKA_ for Apache Kafka.
    Prefix with CONFLUENT_ for Confluent components.
    Convert to upper-case.
    Replace a period (.) with a single underscore (_).
    Replace a dash (-) with double underscores (__).
    Replace an underscore (_) with triple underscores (___).

似乎我似乎必须使用

kafka_confluentics_metrics_meretrics_merterics_mertrectopicto. 1

kafka_confluent_security_event_logger_exporter_kafka_topic_replicas:1

It's described here https://docs.confluent.io/platform/current/installation/docker/config-reference.html#confluent-enterprise-ak-configuration

For the Enterprise Kafka (cp-server) image, convert the kafka.properties file variables as below and use them as environment variables:

    Prefix with KAFKA_ for Apache Kafka.
    Prefix with CONFLUENT_ for Confluent components.
    Convert to upper-case.
    Replace a period (.) with a single underscore (_).
    Replace a dash (-) with double underscores (__).
    Replace an underscore (_) with triple underscores (___).

It seems like I have to use

KAFKA_CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1

and

KAFKA_CONFLUENT_SECURITY_EVENT_LOGGER_EXPORTER_KAFKA_TOPIC_REPLICAS: 1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文