Giter Site home page Giter Site logo

rusage's Introduction

rusage: a process wrapper that reports success/failure and resource usage to a prometheus pushgateway

GNU Public License v3.0 GoDoc

Package rusage provides a simple process wrapper like GNU time, that reports resource usage metrics, most importantly CPU usage and maximum resident set size, start / end time and success / failure to a prometheus pushgateway. It is meant for ephemeral or batch jobs that are otherwise hard for prometheus to scrape. In the regular use case you can use the prometheus-rusage-pusher as a prefix in your command invocation line or as a Docker entrypoint and the aspect of metrics gathering is covered so you can keep the code of your workload free of prometheus details.

State

This is WIP; currently no code is released yet.

License

License under GNU Public License v3.0

rusage's People

Contributors

jwkohnen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

rusage's Issues

This project is broken in the general case

The intention of this project was to measure maximum allocated RAM (RSS) of subtree of processes. However due to limitations of the wait() syscall family, only the cumulative maxrss of all subprocesses is available. Which is useless, because that value does not reflect the maximum of RAM all the processes have used at any given point in time. Effectively the maxrss value is only usable if and only if there is only one subprocess ever, which is a too narrow special case and too fragile for my taste.

So I won't bother any further. I've learnt a lot on the way though, so thanks for all the fish.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.