Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Metricbeat] Support systemd version from RHEL 7 for system service metricset #16757

Closed
hochraldo opened this issue Mar 3, 2020 · 3 comments · Fixed by #16902
Closed

[Metricbeat] Support systemd version from RHEL 7 for system service metricset #16757

hochraldo opened this issue Mar 3, 2020 · 3 comments · Fixed by #16902
Assignees
Labels
bug enhancement Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team

Comments

@hochraldo
Copy link

RHEL 7 uses systemd version 219. Therefore the system service metricset does not work as the ListUnitsByPatterns (see

units, err := m.conn.ListUnitsByPatterns(m.cfg.StateFilter, []string{"*.service"})
) method call did not exist in that version.

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.

@jsoriano jsoriano added [zube]: Inbox enhancement Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team labels Mar 4, 2020
@jsoriano
Copy link
Member

jsoriano commented Mar 4, 2020

Hey @hochraldo, thanks for reporting, I agree that it would be nice to support RHEL 7.

cc @fearful-symmetry

@fearful-symmetry
Copy link
Contributor

I'll see what I can do. I agree, we should support this. Might require some hacking depending on what our vendored library supports.

@nabeel-shakeel
Copy link
Contributor

@fearful-symmetry: service metricset not generating any event on CentOS after this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug enhancement Metricbeat Metricbeat Team:Services (Deprecated) Label for the former Integrations-Services team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants