Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 66 additions & 66 deletions receiver/kafkametricsreceiver/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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: