[Metricbeat] Support systemd version from RHEL 7 for system service metricset #16757
Labels
bug
enhancement
Metricbeat
Metricbeat
Team:Services
(Deprecated) Label for the former Integrations-Services team
RHEL 7 uses systemd version 219. Therefore the system service metricset does not work as the
ListUnitsByPatterns
(seebeats/metricbeat/module/system/service/service.go
Line 80 in d89675f
It seems that this method call was introduced in a later version of systemd: systemd/systemd@313fe66
As an alternative
ListUnitsFiltered
could be used, as this method call is available since earlier versions of systemd and provides similar results to my understanding.RHEL 7 is a widely used Linux system in enterprises which will get "normal" support until 30 June 2024.
The text was updated successfully, but these errors were encountered: