Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
This repository was archived by the owner on May 6, 2020. It is now read-only.

Implement the 'events' command #379

Open

Description

@grahamwhaley

The runtime does not currently implement the 'events' command. We may not be able to perfectly match all the information that the runc version supports, but we may be able to do a subset, and possibly some extra VM related info. Analyse and implement as necessary.
https://github.com/opencontainers/runc/blob/e775f0fba3ea329b8b766451c892c41a3d49594d/events.go
https://github.com/opencontainers/runc/blob/52454cf90807727923b375afd7d84ac8fd523959/man/runc-events.8.md

Activity

  1. dvoytik commented on Aug 3, 2017

    @dvoytik

    If everybody else is occupied then I could work on this feature after I finish with HA.

  2. grahamwhaley commented on Aug 3, 2017

    @grahamwhaley
    ContributorAuthor

    That works for me @dvoytik As per the Issue, I think the first stage would be some data gathering and analysis of what runc provides, what options we have to match those, and then what, if any, extra items we might be able to add.
    One of the key aspects we should discuss, probably on a per-item basis, is if we measure some of the stats from outside or inside the VM/container, or both etc.
    @mcastelino for any thoughts he has.
    @sboeuf for any thoughts on his current plans to check we don't overlap etc.

  3. sboeuf commented on Aug 3, 2017

    @sboeuf

    Oh yeah great if @dvoytik wants to implement this. Looking at what runc expects, I would say that we want to monitor what is going on inside the VM. This means that from virtcontainers/runtime, we would call/poll on a new agent command getStats(containerID) for example, and then format those results to the format expected by runc.
    Does that make sense ?

  4. grahamwhaley commented on Aug 3, 2017

    @grahamwhaley
    ContributorAuthor

    Let's list out what runc/docker currently extract/print and then we can have a discussion as to which should come from inside or outside of the VM.
    I think a wiki page might be a suitable place to do that diagnosis, you think? I just want to make sure we get the decision right first time.
    The new agent command sounds the right approach to me for things from in the VM, unless we can extract them via QMP for instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions