This file is indexed.

/usr/lib/python3/dist-packages/ctop-1.0.0.egg-info/PKG-INFO is in ctop 1.0.0-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
Metadata-Version: 1.1
Name: ctop
Version: 1.0.0
Summary: A lightweight top like monitor for linux CGroups
Home-page: https://github.com/yadutaf/ctop
Author: Jean-Tiare Le Bigot
Author-email: jt@yadutaf.fr
License: MIT
Description: CTOP
        ====
        
        A command line / text based Linux Containers monitoring tool that works just like you expect.
        
        .. image:: https://github.com/yadutaf/ctop/raw/master/screenshots/screenshot.png
        
        In a hurry?
        
        .. code:: bash
        
            curl -sSl https://raw.githubusercontent.com/yadutaf/ctop/master/cgroup_top.py > /opt/ctop && python /opt/ctop
        
        Introduction
        ------------
        
        ``ctop`` will help you see what's going on at the container level. Basically,
        containers are a logical group of processes isolated using kernel's cgroups and
        namespaces. Recently, they have been made popular by Docker and they are also
        heavily used under the hood by systemd and a load of container tools like lxc,
        rocket, lmctfy and many others.
        
        Under the hood, ctop will collect all metrics it can from cgroups in realtime
        and render them to instantly give you an overview of the global system health.
        
        It currently collects metrics related to cpu, memory and block IO usage as well
        as metadata such as owning user (mostly for systemd based containers), uptime
        and attempts to guess the container managing technology behind.
        
        When the container technology has been successfully guessed, additional features
        are exposed like attaching to container (basically, it opens a shell in the
        container context) and stopping it.
        
        ``ctop`` author uses it on production system to quicky detect biggest memory
        users in low memory situations.
        
        Features
        --------
        
        - collect cpu, pids, memory and blkio metrics
        - collect metadata like task count, owning user, container technology
        - sort by any column
        - filter by container type (docker, lxc, systemd, ...)
        - optionally display logical/tree view
        - optionally fold/unfold sub cgroup tree
        - optionally follow selected cgroup/container
        - optionnaly pause the refresh (typically, to select text)
        - detects Docker, LXC, unprivileged LXC, OpenVZ and systemd based containers
        - supports advanced features for Docker, LXC and OpenVZ based containers
        - open a shell/attach to supported container types for further diagnose
        - stop/kill/chekpointing supported container types
        - click to sort / reverse
        - click to select cgroup
        - no external dependencies beyond Python >= 2.6 or Python >= 3.0
        
        Installation
        ------------
        
        As a monitoring tool, ``ctop`` tries to be as dicrete as possible. Nonetheless
        it still has some expectations. It will need at least Python 2.6 with builtin
        curses support to run. This is usually found with Debian 6 and newer.
        
        This said, the recommended installation method relies on pip
        
        .. code:: bash
        
          pip install ctop
          ctop
        
        If using pip is not an option, which is often the case on production systems,
        you may also directly grab the self-contained source file directly from github
        and run it in place. All you'll need is Python 2.6 (Debian Squeeze):
        
        .. code:: bash
        
          wget https://raw.githubusercontent.com/yadutaf/ctop/master/cgroup_top.py -O ctop
          chmod +x ctop
          ./ctop
        
        Alternatively, if you are a Boot2docker user, you may install a Dockerized
        version of ctop instead. Please note that this is experimental. You have to
        have a docker binary inside your container to control / attach to your
        containers from ctop using this method:
        
        .. code:: bash
        
          docker pull yadutaf/ctop
          docker run --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro --volume=/var/run/docker.sock:/var/run/docker.sock -it --rm yadutaf/ctop
          # Optionally, to resolve uids to usernames, add '--volume /etc/passwd:/etc/passwd:ro'
        
        Usage
        -----
        
        **Command line**:
        
          Monitor local cgroups as used by Docker, LXC, SystemD, ...
        
          Usage:
            ctop [--tree] [--refresh=<seconds>] [--columns=<columns>] [--sort-col=<sort-col>] [--follow=<name>] [--fold=<cgroup>, ...] [--type=<container type>, ...]
            ctop (-h | --help)
        
          Options:
            --tree                 Show tree view by default.
            --fold=<name>          Start with <name> cgroup path folded
            --follow=<name>        Follow/highlight cgroup at path.
            --type=TYPE            Only show containers of this type
            --refresh=<seconds>    Refresh display every <seconds> [default: 1].
            --columns=<columns>    List of optional columns to display. Always includes 'name'. [default: owner,processes,memory,cpu-sys,cpu-user,blkio,cpu-time].
            --sort-col=<sort-col>  Select column to sort by initially. Can be changed dynamically. [default: cpu-user]
            -h --help              Show this screen.
        
        
        **Control**:
        
        - press ``p`` to toggle/pause the refresh and select text.
        - press ``f`` to let selected line follow / stay on the same container. Default: Don't follow.
        - press ``q`` or ``Ctrl+C`` to quit.
        - press ``F5`` to toggle tree/list view. Default: list view.
        - press ``↑`` and ``↓`` to navigate between containers.
        - press ``+`` or ``-`` to toggle child cgroup folding
        - click on title line to select sort column / reverse sort order.
        - click on any container line to select it.
        
        Additionally, for supported container types (Currently Docker, LXC and OpenVZ):
        
        - press ``a`` to attach to console output.
        - press ``e`` to open a shell in the container context. Aka 'enter' container.
        - press ``s`` to stop the container (SIGTERM).
        - press ``k`` to kill the container (SIGKILL).
        - press ``c`` to checkpointing the container(OpenVZ only now - run 'vzctl chkpnt CTID')
        
        Requirements
        ------------
        
        * python >=2.6 or python >=3.0, with builtin curses support
        
        Licence
        -------
        
        MIT
        
        
Platform: any
Classifier: Environment :: Console
Classifier: Environment :: Console :: Curses
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Topic :: System :: Monitoring
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3