|
54 | 54 | consumergroupLag *prometheus.Desc
|
55 | 55 | consumergroupLagSum *prometheus.Desc
|
56 | 56 | consumergroupLagZookeeper *prometheus.Desc
|
57 |
| - consumergroupMembers *prometheus.Desc |
| 57 | + // TODO(adrian.arumugam): Hack to patch kafka_exporter to make it reliable ASAP while |
| 58 | + // a better upstream patch is figured out. |
| 59 | + //consumergroupMembers *prometheus.Desc |
58 | 60 | )
|
59 | 61 |
|
60 | 62 | // Exporter collects Kafka stats from the given server and exports them using
|
@@ -573,9 +575,11 @@ func (e *Exporter) collect(ch chan<- prometheus.Metric) {
|
573 | 575 | }
|
574 | 576 | }
|
575 | 577 | }
|
576 |
| - ch <- prometheus.MustNewConstMetric( |
577 |
| - consumergroupMembers, prometheus.GaugeValue, float64(len(group.Members)), group.GroupId, |
578 |
| - ) |
| 578 | + // TODO(adrian.arumugam): Hack to patch kafka_exporter to make it reliable ASAP while |
| 579 | + // a better upstream patch is figured out. |
| 580 | + //ch <- prometheus.MustNewConstMetric( |
| 581 | + // consumergroupMembers, prometheus.GaugeValue, float64(len(group.Members)), group.GroupId, |
| 582 | + //) |
579 | 583 | offsetFetchResponse, err := broker.FetchOffset(&offsetFetchRequest)
|
580 | 584 | if err != nil {
|
581 | 585 | glog.Errorf("Cannot get offset of group %s: %v", group.GroupId, err)
|
@@ -855,11 +859,13 @@ func setup(
|
855 | 859 | []string{"consumergroup", "topic"}, labels,
|
856 | 860 | )
|
857 | 861 |
|
858 |
| - consumergroupMembers = prometheus.NewDesc( |
859 |
| - prometheus.BuildFQName(namespace, "consumergroup", "members"), |
860 |
| - "Amount of members in a consumer group", |
861 |
| - []string{"consumergroup"}, labels, |
862 |
| - ) |
| 862 | + // TODO(adrian.arumugam): Hack to patch kafka_exporter to make it reliable ASAP while |
| 863 | + // a better upstream patch is figured out. |
| 864 | + // consumergroupMembers = prometheus.NewDesc( |
| 865 | + // prometheus.BuildFQName(namespace, "consumergroup", "members"), |
| 866 | + // "Amount of members in a consumer group", |
| 867 | + // []string{"consumergroup"}, labels, |
| 868 | + // ) |
863 | 869 |
|
864 | 870 | if logSarama {
|
865 | 871 | sarama.Logger = log.New(os.Stdout, "[sarama] ", log.LstdFlags)
|
|
0 commit comments