containers / prometheus-podman-exporter

Prometheus exporter for podman environments exposing containers, pods, images, volumes and networks information.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make `--collector.image` option use less IO and time by not calculating image size on every scrape

ykuksenko opened this issue · comments

Is your feature request related to a problem? Please describe.
When the --collector.image option is used the scrape time increases significantly along with I/O. For me hundreds of MBs of reads happen on every scrape.

  • I am not certain if containers/storage#1060 is required for this to be done.
    • here uidmap is listed as part of the problem but we have proper uidmap support now and it is still a problem.
  • containers/podman#13810 - tried to make size calculation optional in the podman repo for podman image ls but the change was reverted before it shipped.

Describe the solution you'd like
Do size calculation only when new images are added or detected. (I presume they should not change size without the ID changing).

Additional context
Using podman version 4.4.1

A friendly reminder that this issue had no activity for 30 days.

Hi @ykuksenko

Added the feature to main branch and will be part of next release.