Skip to content

No metrics for podman generated unit files. #60

Open
@Skipper0707

Description

@Skipper0707

Hello;

This exporter is amazing and satisfies all my monitoring needs, the only problem is that I have several unit files related to podman which reside in /home/user/.config/systemd/user and I want to be able to monitor them too, however, using the following syntax didn't work. I'm sure I'm doing something wrong.

./systemd_exporter --systemd.collector.unit-include="/home/user/.config/systemd/user/.*"
./systemd_exporter --systemd.collector.unit-include="/home/user/.config/systemd/user/*"
./systemd_exporter --systemd.collector.unit-include=/home/user/.config/systemd/user/.*\.service

The service files generated by podman do not show up in the metrics by default. I even have the podman.service so I gather the problem with those is that they're on a rather different path than the default.

UPDATE: I noticed when I run the systemd_exporter without the mentioned flag, everything works and I start to see metrics in Prometheus but when I use the flag, it not only doesn't include the set path but, it doesn't send any systems metrics at all.

UPDATE2: I tried the following:

systemctl link /home/user/.config/systemd/user/foo.serivce

And a symlink was made in /etc/systemd/system/ but after running the systemd_exporter the foo.service still didn't show up.

I have to mention these service files are generated using podman generate systemd via the rootless user and can be managed using systemctl --user status/restart/stop... foo.service, hope this information helps in helping me :)

Any help is appreciated, thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions