class Crometheus::StandardExports

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.cr

Class Method Summary

Instance Method Summary

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

def self.type #

[View source]

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.


[View source]