@@ -32,11 +32,15 @@ type Exporter struct {
32
32
topicLogDirSize * prometheus.Desc
33
33
34
34
// Topic / Partition
35
- topicInfo * prometheus.Desc
36
- topicHighWaterMarkSum * prometheus.Desc
37
- partitionHighWaterMark * prometheus.Desc
38
- topicLowWaterMarkSum * prometheus.Desc
39
- partitionLowWaterMark * prometheus.Desc
35
+ topicInfo * prometheus.Desc
36
+ topicInfoPartitionsCount * prometheus.Desc
37
+ topicInfoReplicationFactor * prometheus.Desc
38
+ topicInfoMinInsyncReplicas * prometheus.Desc
39
+ topicInfoRetentionMs * prometheus.Desc
40
+ topicHighWaterMarkSum * prometheus.Desc
41
+ partitionHighWaterMark * prometheus.Desc
42
+ topicLowWaterMarkSum * prometheus.Desc
43
+ partitionLowWaterMark * prometheus.Desc
40
44
41
45
// Consumer Groups
42
46
consumerGroupInfo * prometheus.Desc
@@ -114,6 +118,30 @@ func (e *Exporter) InitializeMetrics() {
114
118
labels ,
115
119
nil ,
116
120
)
121
+ e .topicInfoPartitionsCount = prometheus .NewDesc (
122
+ prometheus .BuildFQName (e .cfg .Namespace , "kafka" , "topic_info_partitions_count" ),
123
+ "Partitions configuration for a given topic" ,
124
+ []string {"topic_name" },
125
+ nil ,
126
+ )
127
+ e .topicInfoReplicationFactor = prometheus .NewDesc (
128
+ prometheus .BuildFQName (e .cfg .Namespace , "kafka" , "topic_info_replication_factor" ),
129
+ "Replication factor configuration for a given topic" ,
130
+ []string {"topic_name" },
131
+ nil ,
132
+ )
133
+ e .topicInfoMinInsyncReplicas = prometheus .NewDesc (
134
+ prometheus .BuildFQName (e .cfg .Namespace , "kafka" , "topic_info_min_insync_replicas" ),
135
+ "Min in-sync replicas configuration for a given topic" ,
136
+ []string {"topic_name" },
137
+ nil ,
138
+ )
139
+ e .topicInfoRetentionMs = prometheus .NewDesc (
140
+ prometheus .BuildFQName (e .cfg .Namespace , "kafka" , "topic_info_retention_ms" ),
141
+ "Retention time for a given topic" ,
142
+ []string {"topic_name" },
143
+ nil ,
144
+ )
117
145
// Partition Low Water Mark
118
146
e .partitionLowWaterMark = prometheus .NewDesc (
119
147
prometheus .BuildFQName (e .cfg .Namespace , "kafka" , "topic_partition_low_water_mark" ),
0 commit comments