No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
lib/Telemetry
t
.gitignore
.travis.yml
LICENSE
META6.json
README.md

README.md

Telemetry::httpd

Build Status

Add a Simple httpd to any Perl 6 program that listens on 5000 by default and reports telemetry gathered by use Telemetry;

SYNOPSIS

use Telemetry::httpd;

loop { 
    say ‚heart beat‘;
    sleep 1;
}

The httpd server thread is started when the module is loaded. Reports can be fetched with GET / as text.

The default interval of 1 second can be changed by GET /interval=66.6. The httpd-server thread can be terminated by GET /stop-server and taking telemetry snapshots can be stopped with GET /stop-snapper.

The default port of 5000 can be changed via %*ENV<RAKUDO_TELEMETRY_PORT>.

By default binding happens on localhost. This can be changed via %*ENV<RAKUDO_TELEMETRY_LISTEN>.

LICENSE

All files (unless noted otherwise) can be used, modified and redistributed under the terms of the Artistic License Version 2. Examples (in the documentation, in tests or distributed as separate files) can be considered public domain.

ⓒ2017 Wenzel P. P. Peppmeyer