此内容没有您所选择的语言版本。

Chapter 35. Using Metering on Streams for Apache Kafka


You can use the Metering tool that is available on OpenShift to generate metering reports from different data sources. As a cluster administrator, you can use metering to analyze what is happening in your cluster. You can either write your own, or use predefined SQL queries to define how you want to process data from the different data sources you have available. Using Prometheus as a default data source, you can generate reports on pods, namespaces, and most other OpenShift resources.

You can also use the OpenShift Metering operator to analyze your installed Streams for Apache Kafka components to determine whether you are in compliance with your Red Hat subscription.

To use metering with Streams for Apache Kafka, you must first install and configure the Metering operator on OpenShift Container Platform.

35.1. Metering resources

Metering has many resources which can be used to manage the deployment and installation of metering, as well as the reporting functionality metering provides. Metering is managed using the following CRDs:

Expand
Table 35.1. Metering resources
NameDescription

MeteringConfig

Configures the metering stack for deployment. Contains customizations and configuration options to control each component that makes up the metering stack.

Reports

Controls what query to use, when, and how often the query should be run, and where to store the results.

ReportQueries

Contains the SQL queries used to perform analysis on the data contained within ReportDataSources.

ReportDataSources

Controls the data available to ReportQueries and Reports. Allows configuring access to different databases for use within metering.

35.2. Metering labels for Streams for Apache Kafka

The following table lists the metering labels for Streams for Apache Kafka infrastructure components and integrations.

Expand
Table 35.2. Metering Labels
LabelPossible values

com.company

Red_Hat

rht.prod_name

Red_Hat_Application_Foundations

rht.prod_ver

2025.Q1

rht.comp

AMQ_Streams

rht.comp_ver

2.9

rht.subcomp

Infrastructure

cluster-operator

entity-operator

topic-operator

user-operator

zookeeper

Application

kafka-broker

kafka-connect

kafka-connect-build

kafka-mirror-maker2

kafka-mirror-maker

cruise-control

kafka-bridge

kafka-exporter

drain-cleaner

rht.subcomp_t

infrastructure

application

Examples

  • Infrastructure example (where the infrastructure component is entity-operator)

    com.company=Red_Hat
    rht.prod_name=Red_Hat_Application_Foundations
    rht.prod_ver=2025.Q1
    rht.comp=AMQ_Streams
    rht.comp_ver=2.9
    rht.subcomp=entity-operator
    rht.subcomp_t=infrastructure
  • Application example (where the integration deployment name is kafka-bridge)

    com.company=Red_Hat
    rht.prod_name=Red_Hat_Application_Foundations
    rht.prod_ver=2025.Q1
    rht.comp=AMQ_Streams
    rht.comp_ver=2.9
    rht.subcomp=kafka-bridge
    rht.subcomp_t=application
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部