in pkg/monitoring/server.go [102:113]
func (m *Server) OnError(c client.Interface, metricType config.MetricType, err error) {
clientName := c.GetConfiguration().Name
m.lock.Lock()
defer m.lock.Unlock()
if metricType == config.CustomMetricType {
m.clientFailures.CustomMetrics[clientName]++
}
if metricType == config.ExternalMetricType {
m.clientFailures.ExternalMetrics[clientName]++
}
clientErrors.WithLabelValues(c.GetConfiguration().Name, string(metricType)).Inc()
}