diff --git a/contrib/prometheus-exporter/service-prometheus.c b/contrib/prometheus-exporter/service-prometheus.c index 7cf30c1f3c..e6023d353e 100644 --- a/contrib/prometheus-exporter/service-prometheus.c +++ b/contrib/prometheus-exporter/service-prometheus.c @@ -718,12 +718,12 @@ static int promex_dump_listener_metrics(struct appctx *appctx, struct htx *htx) li = appctx->ctx.stats.obj2; list_for_each_entry_from(li, &px->conf.listeners, by_fe) { - labels[1].name = ist("listener"); - labels[1].value = ist2(li->name, strlen(li->name)); - if (!li->counters) continue; + labels[1].name = ist("listener"); + labels[1].value = ist2(li->name, strlen(li->name)); + if (!stats_fill_li_stats(px, li, 0, stats, ST_F_TOTAL_FIELDS, &(appctx->st2))) return -1;