Mojolicious-Plugin-Prometheus-Shared-FastMmap

Mojolicious Plugin


Keywords
mojolicious, monitoring, perl, perl5, prometheus
License
Artistic-2.0

Documentation

MetaCPAN Release

NAME

Mojolicious::Plugin::Prometheus::Shared::FastMmap - Mojolicious Plugin

SYNOPSIS

# Mojolicious
$self->plugin('Prometheus::Shared::FastMmap');

# Mojolicious::Lite
plugin 'Prometheus::Shared::FastMmap';

# Mojolicious::Lite, with custom response buckets (seconds)
plugin 'Prometheus::Shared::FastMmap' => { response_buckets => [qw/4 5 6/] };

DESCRIPTION

Mojolicious::Plugin::Prometheus::Shared::FastMmap is a Mojolicious plugin that exports Prometheus metrics from Mojolicious, using a shared mmapped file between workers.

It uses Mojolicious::Plugin::Prometheus under the hood, and adds a shared cache using Mojolicious::Plugin::CHI + CHI + Cache::FastMmap to provide metrics for all workers under a pre-forking daemon like Mojo::Server::Hypnotoad.

See Mojolicious::Plugin::Prometheus for more complete documentation.

METHODS

Mojolicious::Plugin::Prometheus::Shared::FastMmap inherits all methods from Mojolicious::Plugin::Prometheus and implements no new ones.

register

$plugin->register($app, \%config);

Register plugin in Mojolicious application.

%config can have all the original values as Mojolicious::Plugin::Prometheus, and adds the following keys:

AUTHOR

Vidar Tyldum

COPYRIGHT AND LICENSE

Copyright (C) 2018, Vidar Tyldum

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.

SEE ALSO