prometheus_collector.
label() = {label_name(), label_value()}
label_name() = term()
label_value() = term()
prometheus_boolean() = boolean() | number() | list() | undefined
value() = float() | integer() | undefined | infinity
boolean_metric(Spec) -> prometheus_model:'Metric'()
Equivalent to boolean_metric(Labels, Value).
boolean_metric(Labels, Value) -> prometheus_model:'Metric'()
Creates boolean metric with Labels and Value.
boolean_metrics(Values) -> any()
Equivalent to
lists:map(fun boolean_metric/1, Values).
counter_metric(Spec) -> prometheus_model:'Metric'()
Equivalent to counter_metric(Labels, Value).
counter_metric(Labels, Value) -> prometheus_model:'Metric'()
Creates counter metric with Labels and Value.
counter_metrics(Specs) -> any()
Equivalent to
lists:map(fun counter_metric/1, Specs).
create_mf(Name, Help, Type, Collector, CollectorData) -> MetricFamily
Create Metric Family of Type, Name and Help.
Collector:collect_metrics/2 callback will be called and expected to
return individual metrics list.
gauge_metric(Spec) -> prometheus_model:'Metric'()
Equivalent to gauge_metric(Labels, Value).
gauge_metric(Labels, Value) -> prometheus_model:'Metric'()
Creates gauge metric with Labels and Value.
gauge_metrics(Values) -> any()
Equivalent to
lists:map(fun gauge_metric/1, Values).
histogram_metric(Spec) -> prometheus_model:'Metric'()
Equivalent to histogram_metric(Labels, Buckets, Count, Sum).
histogram_metric(Buckets, Count, Sum) -> any()
Equivalent to histogram_metric([], Buckets, Count, Sum).
histogram_metric(Labels, Buckets, Count, Sum) -> Metric
Creates histogram metric with Labels, Buckets, Count and Sum.
histogram_metrics(Specs) -> any()
Equivalent to
lists:map(fun histogram_metric/1, Specs).
label_pair(X1::label()) -> prometheus_model:'LabelPair'()
Creates prometheus_model:LabelPair'()' from {Name, Value} tuple.
label_pairs(Labels) -> any()
Equivalent to
lists:map(fun label_pair/1, Labels).
summary_metric(Spec) -> prometheus_model:'Metric'()
Equivalent to summary_metric(Labels, Count, Sum).
summary_metric(Count, Sum) -> any()
Equivalent to summary_metric([], Count, Sum).
summary_metric(Labels, Count, Sum) -> prometheus_model:'Metric'()
Creates summary metric with Labels, Count and Sum.
summary_metrics(Specs) -> any()
Equivalent to
lists:map(fun summary_metric/1, Specs).
untyped_metric(Spec) -> prometheus_model:'Metric'()
Equivalent to untyped_metric(Labels, Value).
untyped_metric(Labels, Value) -> prometheus_model:'Metric'()
Creates untyped metric with Labels and Value.
untyped_metrics(Values) -> any()
Equivalent to
lists:map(fun untyped_metric/1, Values).
Generated by EDoc