class Crometheus::StandardExports::ProcFSExports

Overview

A subclass of StandardExports that also reports process information from procfs. Generated by Crometheus.make_standard_exports.

Defined in:

crometheus/standard_exports.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crometheus::StandardExports

samples(&) samples

Class methods inherited from class Crometheus::StandardExports

type type

Instance methods inherited from class Crometheus::Metric

docstring : String docstring, name : Symbol name, samples(&block : Sample -> 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?

Constructor Detail

def self.new(name : Symbol, docstring : String, register_with : Crometheus::Registry | Nil = Crometheus.default_registry, pid : Int64 = Process.pid, procfs : String = "/proc") #

[View source]

Instance Method Detail

def samples(&) #
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]