func (p *Prometheus) collectCounter(mx map[string]int64, mf *prometheus.MetricFamily) {
    for _, m := range mf.Metrics() {
        if m.Counter() == nil || math.IsNaN(m.Counter().Value()) {
            continue
        }