Skip to content

julcollas/ntpstats-graphite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

ntpstats-graphite is an tool to push ntpd statistics to `Graphite <http://graphite.readthedocs.org/>`.

Dependencies
-----------

- pyinotify
- click

Quick start
-----------

        # ntpstats-graphite-poller --help
        Usage: ntpstats-graphite-poller [OPTIONS] COMMAND [ARGS]...

        Options:
          --debug / --no-debug  debugging output
          --prefix TEXT         Graphite prefix
          --server TEXT         carbon server address
          --port INTEGER        carbon server port
          --help                Show this message and exit.

        Commands:
          inotify
          oneshot

        # ntpstats-graphite-poller inotify --help
        Usage: ntpstats-graphite-poller inotify [OPTIONS]

        Options:
          --path PATH  Path to ntpstats directory
          --help       Show this message and exit.

        # ntpstats-graphite-poller oneshot --help
        Usage: ntpstats-graphite-poller oneshot [OPTIONS]

        Options:
          --loopstats PATH
          --peerstats PATH
          --rawstats PATH
          --sysstats PATH
          --help            Show this message and exit.

Using `ntpstats-graphite-poller` with inotify, watching for changes:

      # ntpstats-graphite-poller --server="graphite_server" --port=2003 --prefix="ntpstats.server" inotify

or in the oneshot mode for timed execution

      # ntpstats-graphite-poller --server="graphite_server" --port=2003 --prefix="ntpstats.server" oneshot
    

About

Push ntpd statistics to Graphite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages