statgrab: Collect system level metrics and statistics

[ ffi, library, monitoring, system ] [ Propose Tags ]

Provides an interface to the cross platform system statistics C library libstatgrab.

It supports a wide range of system statistics including CPU usage, memory utilisation, disk usage, process counts, network traffic, disk I/O, and more.

The current list of supported and tested platforms for the underlying library includes OSX, FreeBSD, Linux, NetBSD, OpenBSD, Solaris, DragonFly BSD, HP-UX and AIX.

Requirements:

  • libstatgrab 0.9.0 must be installed on the target system.

  • Be aware that currently these bindings have been developed and tested only on OSX/Linux.

Haddock documentation can also be found on GitHub.


[Skip to Readme]

Modules

[Index]

  • System
    • System.Statgrab

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.3
Dependencies async, base (>=4 && <5), bytestring, MonadCatchIO-transformers, time, transformers [details]
License LicenseRef-OtherLicense
Copyright Copyright (c) 2013 Brendan Hay
Author Brendan Hay
Maintainer Brendan Hay <brendan.g.hay@gmail.com>
Category System, FFI, Monitoring
Home page http://github.com/brendanhay/statgrab
Source repo head: git clone git://github.com/brendanhay/statgrab.git
Uploaded by BrendanHay at 2013-10-03T15:40:52Z
Distributions NixOS:0.1.3
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 3520 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user [build log]
All reported builds failed [all 1 reports]

Readme for statgrab-0.1.1

[back to package description]

Statgrab

Haskell bindings to the portable system statistics libstatgrab library.

Table of Contents

Introduction

libstatgrab is a library that provides cross platform access to statistics about the system on which it's run. It's written in C and presents a selection of useful interfaces which can be used to access key system statistics. The current list of statistics includes CPU usage, memory utilisation, disk usage, process counts, network traffic, disk I/O, and more.

The current list of supported and tested platforms includes OSX, FreeBSD, Linux, NetBSD, OpenBSD, Solaris, DragonFly BSD, HP-UX and AIX.

Please see the libstatgrab homepage for more information.

Further documentation can be found on Hackage.

Compatibility

libstatgrab 0.9.0 is required.

While the bindings should correctly build on the same platforms as supported by the library, only OSX and Linux have currently been tested.

Installation

Install libstatgrab 0.9.0 from a mirror, and then run cabal install.

Examples

module Main (main) where

import Control.Monad.IO.Class
import System.Statgrab

main :: IO ()
main = runStats $ (snapshot :: Stats Host) >>= liftIO . print

Contributing

For any problems, comments or feedback please create an issue here on GitHub.

Licence

statgrab is released under the Mozilla Public License Version 2.0