Module prometheus_model_helpers

Data Types

label()

label() = {label_name(), label_value()}

label_name()

label_name() = term()

label_value()

label_value() = term()

Function Index

counter_metric/1
counter_metric/2
counter_metrics/1Equivalent to lists:map(fun counter_metric/1, Specs).
create_mf/5
gauge_metric/1
gauge_metric/2
gauge_metrics/1Equivalent to lists:map(fun gauge_metric/1, Values).
histogram_metric/1
histogram_metric/4
histogram_metrics/1Equivalent to lists:map(fun histogram_metric/1, Specs).
label_pair/1
label_pairs/1Equivalent to lists:map(fun label_pair/1, Labels).
summary_metric/1
summary_metric/2Equivalent to summary_metric([], Count, Sum).
summary_metric/3
summary_metrics/1Equivalent to lists:map(fun summary_metric/1, Specs).

Function Details

counter_metric/1

counter_metric(Value) -> prometheus_model:'Metric'()

counter_metric/2

counter_metric(Labels, Value) -> prometheus_model:'Metric'()

counter_metrics/1

counter_metrics(Specs) -> any()

Equivalent to lists:map(fun counter_metric/1, Specs).

create_mf/5

create_mf(Name, Help, Type, Collector, CollectorData) -> MetricFamily

gauge_metric/1

gauge_metric(Value) -> prometheus_model:'Metric'()

gauge_metric/2

gauge_metric(Labels, Value) -> prometheus_model:'Metric'()

gauge_metrics/1

gauge_metrics(Values) -> any()

Equivalent to lists:map(fun gauge_metric/1, Values).

histogram_metric/1

histogram_metric(X1) -> any()

histogram_metric/4

histogram_metric(Labels, Buckets, Count, Sum) -> Metric

histogram_metrics/1

histogram_metrics(Specs) -> any()

Equivalent to lists:map(fun histogram_metric/1, Specs).

label_pair/1

label_pair(X1::label()) -> prometheus_model:'LabelPair'()

label_pairs/1

label_pairs(Labels) -> any()

Equivalent to lists:map(fun label_pair/1, Labels).

summary_metric/1

summary_metric(Spec) -> prometheus_model:'Metric'()

summary_metric/2

summary_metric(Count, Sum) -> any()

Equivalent to summary_metric([], Count, Sum).

summary_metric/3

summary_metric(Labels, Count, Sum) -> prometheus_model:'Metric'()

summary_metrics/1

summary_metrics(Specs) -> any()

Equivalent to lists:map(fun summary_metric/1, Specs).


Generated by EDoc, Aug 15 2016, 18:56:23.