Skip to main content

Procfs-Sensor is a sensor that monitor CPU usage of cgroup

Project description

# Procfs-Sensor

The Proc Filesystem Sensor is a tool that monitor the CPU usage of cgroup via the linux’s proc filesystem. It use pidstat to retreive the percentage of CPU usage of each process. It then use the /sys/fs/perf_event directory to find the appartenance of processes to cgroup.

The sensor need the cgroup version 1. The version 2 is not supported yet.

# About

Procfs Sensor is an open-source project developed by the [Spirals research group](https://team.inria.fr/spirals) (University of Lille 1 and Inria).

The documentation is not available yet.

## Contributing

If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request. You should start by reading the [contribution guide](https://github.com/powerapi-ng/procfs-sensor/blob/main/contributing.md)

When submitting code, please check that it is conform by using pylint and flake8 with the configurations files at the root of the project.

## Acknowledgments

Procfs Sensor is written in [Python](https://www.python.org/) (under [PSF license](https://docs.python.org/3/license.html)). It also use [pidstat](https://github.com/sysstat/sysstat)

MIT License

Copyright (c) 2021 PowerAPI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

procfs_sensor-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

procfs_sensor-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file procfs_sensor-0.1.0.tar.gz.

File metadata

  • Download URL: procfs_sensor-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for procfs_sensor-0.1.0.tar.gz
Algorithm Hash digest
SHA256 269e8bfbe5462bccd9be4fc51d7acf38f8c4b5f87e2e2ad5d8aa632b49391840
MD5 91050992e37c2bc79b5d48896fe5c60f
BLAKE2b-256 3741926ec4c5d09cd75959fc363919b620efdc0154be8a3a654c3a68df4a9c8a

See more details on using hashes here.

File details

Details for the file procfs_sensor-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: procfs_sensor-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for procfs_sensor-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 226a314c8a070bf2131cfebaebe618db3026da0092fa5ee61e64853acfbf3f81
MD5 756932bcbac8c3aac33ec3f681cb396c
BLAKE2b-256 e00e149d757af7274c44eb153ff9646b0f31cac6aa21b4dabb4a49ffad8f0df0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page