Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfldex/perl6-telemetry-httpd
https://github.com/gfldex/perl6-telemetry-httpd
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gfldex/perl6-telemetry-httpd
- Owner: gfldex
- License: artistic-2.0
- Created: 2017-11-05T09:46:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T21:28:01.000Z (about 7 years ago)
- Last Synced: 2024-11-06T05:44:06.858Z (2 months ago)
- Language: Perl 6
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telemetry::httpd
[![Build Status](https://travis-ci.org/gfldex/perl6-telemetry-httpd.svg?branch=master)](https://travis-ci.org/gfldex/perl6-telemetry-httpd)
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`.
By default binding happens on localhost. This can be changed via
`%*ENV`.## 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