diff --git a/metricbeat/module/traefik/health/data.go b/metricbeat/module/traefik/health/data.go index 0f3767b41729..5cc5bc5020d9 100644 --- a/metricbeat/module/traefik/health/data.go +++ b/metricbeat/module/traefik/health/data.go @@ -37,7 +37,7 @@ var ( } ) -func eventMapping(health map[string]interface{}) (common.MapStr, *s.Errors) { +func eventMapping(health map[string]interface{}) (common.MapStr, error) { if averageResponseTimeSec, ok := health["average_response_time_sec"]; ok { if averageResponseTimeSec, ok := averageResponseTimeSec.(float64); ok { health["average_response_time_us"] = averageResponseTimeSec * 1000 * 1000