diff --git a/internal/collector/client.go b/internal/collector/client.go index ee67f73..c33bec6 100644 --- a/internal/collector/client.go +++ b/internal/collector/client.go @@ -127,7 +127,7 @@ func (client *Client) findAllEndpoints() error { // Path for event log switch client.vendor { case DELL: - client.eventPath = "/redfish/v1/Managers/iDRAC.Embedded.1/Logs/Sel" + client.eventPath = "/redfish/v1/Managers/iDRAC.Embedded.1/LogServices/Sel/Entries" case LENOVO: client.eventPath = "/redfish/v1/Systems/1/LogServices/PlatformLog/Entries" case HPE: diff --git a/internal/collector/metrics.go b/internal/collector/metrics.go index 1426869..69ecaa7 100644 --- a/internal/collector/metrics.go +++ b/internal/collector/metrics.go @@ -257,7 +257,7 @@ func (mc *Collector) NewEventLogEntry(id string, message string, severity string prometheus.CounterValue, float64(created.Unix()), id, - message, + strings.TrimSpace(message), severity, ) }