Help language development. Donate to The Perl Foundation
Template::Prometheus
Patrick Spek [email protected]
0.0.0
Objects to easily render templates of metrics for usage with Prometheus.
Install this module through zef:
zef install Template::Prometheus
App::CPAN
databaseTemplate::Prometheus
.new(:prefix<cpan6>)
.add-metric(GaugeMetric.new(
name => "distribution_count",
value => ModuleRepo::count,
description => "Number of distributions in the database",
))
.add-metric(GaugeMetric.new(
name => "module_count",
value => ModuleRepo::count-unique,
description => "Number of unique modules in the database",
))
.add-metric(GaugeMetric.new(
name => "pause_id_count",
value => ModuleRepo::count-pause-ids,
description => "Number of PAUSE IDs in the database",
))
.Str
.say
This module is distributed under the terms of the AGPL-3.0.