From 365a02bcde50753882f073802c2a983ab4b0051e Mon Sep 17 00:00:00 2001 From: Paulo Dias Date: Sat, 11 Oct 2025 18:05:08 +0100 Subject: [PATCH] [chore][receiver/kafkametricsreceiver] sort metadata.yaml entries Signed-off-by: Paulo Dias --- receiver/kafkametricsreceiver/metadata.yaml | 132 ++++++++++---------- 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/receiver/kafkametricsreceiver/metadata.yaml b/receiver/kafkametricsreceiver/metadata.yaml index d06288143c676..11b88038e31dd 100644 --- a/receiver/kafkametricsreceiver/metadata.yaml +++ b/receiver/kafkametricsreceiver/metadata.yaml @@ -18,28 +18,18 @@ attributes: broker: description: The ID of the kafka broker type: string - topic: - description: The ID (integer) of a topic + group: + description: The ID (string) of a consumer group type: string partition: description: The number (integer) of the partition type: int - group: - description: The ID (string) of a consumer group + topic: + description: The ID (integer) of a topic type: string metrics: # brokers scraper - kafka.brokers: - enabled: true - description: Number of brokers in the cluster. - stability: - level: development - unit: "{brokers}" - sum: - monotonic: false - value_type: int - aggregation_temporality: cumulative kafka.broker.log_retention_period: enabled: false description: log retention time (s) of a broker. @@ -49,54 +39,65 @@ metrics: gauge: value_type: int attributes: [broker] - # topics scraper - kafka.topic.partitions: + kafka.brokers: enabled: true - description: Number of partitions in topic. + description: Number of brokers in the cluster. stability: level: development - unit: "{partitions}" + unit: "{brokers}" sum: monotonic: false value_type: int aggregation_temporality: cumulative - attributes: [topic] - kafka.topic.replication_factor: - enabled: false - description: replication factor of a topic. + # consumers scraper + kafka.consumer_group.lag: + enabled: true + description: Current approximate lag of consumer group at partition of topic stability: level: development unit: "1" gauge: value_type: int - attributes: [topic] - kafka.topic.log_retention_period: - enabled: false - description: log retention period of a topic (s). + attributes: [group, topic, partition] + kafka.consumer_group.lag_sum: + enabled: true + description: Current approximate sum of consumer group lag across all partitions of topic stability: level: development - unit: s + unit: "1" gauge: value_type: int - attributes: [topic] - kafka.topic.log_retention_size: - enabled: false - description: log retention size of a topic in Bytes, The value (-1) indicates infinite size. + attributes: [group, topic] + kafka.consumer_group.members: + enabled: true + description: Count of members in the consumer group stability: level: development - unit: By + unit: "{members}" + sum: + monotonic: false + value_type: int + aggregation_temporality: cumulative + attributes: [group] + kafka.consumer_group.offset: + enabled: true + description: Current offset of the consumer group at partition of topic + stability: + level: development + unit: "1" gauge: value_type: int - attributes: [topic] - kafka.topic.min_insync_replicas: - enabled: false - description: minimum in-sync replicas of a topic. + attributes: [group, topic, partition] + kafka.consumer_group.offset_sum: + enabled: true + description: Sum of consumer group offset across partitions of topic stability: level: development - unit: "{replicas}" + unit: "1" gauge: value_type: int - attributes: [topic] + attributes: [group, topic] + # topics scraper kafka.partition.current_offset: enabled: true description: Current offset of partition of topic. @@ -137,54 +138,53 @@ metrics: value_type: int aggregation_temporality: cumulative attributes: [topic, partition] - # consumers scraper - kafka.consumer_group.members: - enabled: true - description: Count of members in the consumer group + kafka.topic.log_retention_period: + enabled: false + description: log retention period of a topic (s). stability: level: development - unit: "{members}" - sum: - monotonic: false + unit: s + gauge: value_type: int - aggregation_temporality: cumulative - attributes: [group] - kafka.consumer_group.offset: - enabled: true - description: Current offset of the consumer group at partition of topic + attributes: [topic] + kafka.topic.log_retention_size: + enabled: false + description: log retention size of a topic in Bytes, The value (-1) indicates infinite size. stability: level: development - unit: "1" + unit: By gauge: value_type: int - attributes: [group, topic, partition] - kafka.consumer_group.offset_sum: - enabled: true - description: Sum of consumer group offset across partitions of topic + attributes: [topic] + kafka.topic.min_insync_replicas: + enabled: false + description: minimum in-sync replicas of a topic. stability: level: development - unit: "1" + unit: "{replicas}" gauge: value_type: int - attributes: [group, topic] - kafka.consumer_group.lag: + attributes: [topic] + kafka.topic.partitions: enabled: true - description: Current approximate lag of consumer group at partition of topic + description: Number of partitions in topic. stability: level: development - unit: "1" - gauge: + unit: "{partitions}" + sum: + monotonic: false value_type: int - attributes: [group, topic, partition] - kafka.consumer_group.lag_sum: - enabled: true - description: Current approximate sum of consumer group lag across all partitions of topic + aggregation_temporality: cumulative + attributes: [topic] + kafka.topic.replication_factor: + enabled: false + description: replication factor of a topic. stability: level: development unit: "1" gauge: value_type: int - attributes: [group, topic] + attributes: [topic] tests: config: