class Crometheus::StandardExports
- Crometheus::StandardExports
- Crometheus::Metric
- Reference
- Object
Overview
A Metric
type that reports basic process statistics as given by
Crystal.
Generated by Crometheus.make_standard_exports
.
Direct Known Subclasses
Defined in:
crometheus/standard_exports.crClass Method Summary
Instance Method Summary
-
#samples(&) : Nil
Yields one
Sample
for each time series this metric represents.
Instance methods inherited from class Crometheus::Metric
docstring : String
docstring,
name : Symbol
name,
samples(&block : Sample -> Nil) : Nil
samples
Constructor methods inherited from class Crometheus::Metric
new(name : Symbol, docstring : String, register_with : Crometheus::Registry | Nil = Crometheus.default_registry)
new
Class methods inherited from class Crometheus::Metric
type
type,
valid_label?(label : Symbol) : Bool
valid_label?
Class Method Detail
Instance Method Detail
def samples(&) : Nil
#
Description copied from class Crometheus::Metric
Yields one Sample
for each time series this metric represents.
Called by Registry
to collect data for exposition.
Users generally do not need to call this.