-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Additional podman stats
metrics
#9258
Comments
Well PRs welcome. |
Some of these metrics can be retrieved through runc: |
A friendly reminder that this issue had no activity for 30 days. |
I'd like to work on this. |
@anishasthana by all means and TYVM! |
(Also, could someone fix the github-actions bot so that the |
Please open a PR to make the change. |
Possibly related to actions/stale#441? (Although actions/stale#346 sounds useful to have) I just checked, and we do have I can push a PR to bump the release of |
SGTM |
I would tell you the stale notification, is the squeaky wheel that gets me and others to look at old issues. We don't close them automatically, we just attempt to see if they are still active or have been fixed in the last 30 days. |
If there is no progress on this one can I take a look at it? might be a good foray into the libpod side of things. |
@cdoern Take it. |
I've commented on the (merged) change above: In short, it appears that the current change only averages CPU usage (I've not checked time) over the period the single I feel that the counters for these stats should be associated with each running container, allowing accurate figures to be retrieved at any point whilst they still run. |
@srcshelton I took a look earlier, you are right that the |
I don't know if we can store metrics persistently. How would we capture them, considering Podman doesn't have a daemon? |
@mheon I was just thinking the same thing. All of our other stats are captured "in the moment". the |
Is there no facility for the long-running If not, could |
runc/crun run once and then die. |
A friendly reminder that this issue had no activity for 30 days. |
@srcshelton @cdoern @mheon What should we do with this issue? |
@rhatdan thanks for the poke, one idea I had was to implement the other stats as I did with avg cpu %: reset each time you call stats but is persistent as long as the stats stream is running. Not sure if that is what @srcshelton would like, but the way we store stats isn't conducive to any other solution I don't think |
Works for me. |
Hypothetically with this solution, would it be possible to have a lightweight daemon service keeping the stream (many streams for numerous containers?) alive, and then persist and offer-up these stats for the lifetime of the process? The ideal would be to somehow and at any point find out the average CPU usage of a container over its entire lifetime to date - but if another collector process is needed to provide this to one-shot tools wishing to interrogate this data, that doesn't sound so bad? |
would that just require the cpu usage and how long the container is running? We can grab the first information from cgroups and the second one from the OCI runtime (or reading directly |
@giuseppe do cgroups store all of the old cpu % as well? the issue we are running into is that the time is correct, but the percentage only holds the most recent read, leading this to be a stream only feature. |
the cgroup stores the total usage of the cpu. To calculate the percentage we use two measurements |
A friendly reminder that this issue had no activity for 30 days. |
I am not working on this issue. @cdoern any update? Can we close this issue? |
No update from me, we can close for now and then if there is demand I can investigate the |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
It would be really helpful if additional column(s) could be added to those available when specifying custom
podman stats
output to indicate:... of each container.
The text was updated successfully, but these errors were encountered: