Namespaces | |
| detail | |
Data Structures | |
| struct | ClientMetric |
| class | Collectable |
| Interface implemented by anything that can be used by Prometheus to collect metrics. More... | |
| class | Counter |
| A counter metric to represent a monotonically increasing value. More... | |
| class | Family |
| A metric of type T with a set of labeled dimensions. More... | |
| class | Gauge |
| A gauge metric to represent a value that can arbitrarily go up and down. More... | |
| class | Histogram |
| A histogram metric to represent aggregatable distributions of events. More... | |
| class | Info |
| A info metric to represent textual information which should not change during process lifetime. More... | |
| struct | MetricFamily |
| class | Registry |
| Manages the collection of a number of metrics. More... | |
| class | Serializer |
| class | Summary |
| A summary metric samples observations over a sliding window of time. More... | |
| class | TextSerializer |
Typedefs | |
| using | Labels = std::map< std::string, std::string > |
| Multiple labels and their value. More... | |
| using | Label = Labels::value_type |
| Single label and its value. More... | |
Functions | |
| PROMETHEUS_CPP_CORE_EXPORT bool | CheckMetricName (const std::string &name) |
| PROMETHEUS_CPP_CORE_EXPORT bool | CheckLabelName (const std::string &name, MetricType type) |
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Counter > | BuildCounter () |
| Return a builder to configure and register a Counter metric. More... | |
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Gauge > | BuildGauge () |
| Return a builder to configure and register a Gauge metric. More... | |
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Histogram > | BuildHistogram () |
| Return a builder to configure and register a Histogram metric. More... | |
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Info > | BuildInfo () |
| Return a builder to configure and register a Info metric. More... | |
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Summary > | BuildSummary () |
| Return a builder to configure and register a Summary metric. More... | |
| typedef Labels::value_type prometheus::Label |
Single label and its value.
Definition at line 12 of file sources/includes/prometheus/labels.h.
| typedef std::map< std::string, std::string > prometheus::Labels |
Multiple labels and their value.
Definition at line 9 of file sources/includes/prometheus/labels.h.
|
strong |
| Enumerator | |
|---|---|
| Counter | |
| Gauge | |
| Summary | |
| Untyped | |
| Histogram | |
| Info | |
| Counter | |
| Gauge | |
| Summary | |
| Untyped | |
| Histogram | |
| Info | |
Definition at line 5 of file sources/includes/prometheus/metric_type.h.
|
strong |
| Enumerator | |
|---|---|
| Counter | |
| Gauge | |
| Summary | |
| Untyped | |
| Histogram | |
| Info | |
| Counter | |
| Gauge | |
| Summary | |
| Untyped | |
| Histogram | |
| Info | |
Definition at line 5 of file 9.0/sources/includes/prometheus/metric_type.h.
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Counter > prometheus::BuildCounter | ( | ) |
Return a builder to configure and register a Counter metric.
Every metric is uniquely identified by its name and a set of key-value pairs, also known as labels. Prometheus's query language allows filtering and aggregation based on metric name and these labels.
This example selects all time series that have the http_requests_total metric name:
http_requests_total
It is possible to assign labels to the metric name. These labels are propagated to each dimensional data added with Add(). For example if a label job= "prometheus" is provided to this constructor, it is possible to filter this time series with Prometheus's query language by appending a set of labels to match in curly braces ({})
http_requests_total{job= "prometheus"}
For further information see: Querying Basics
| name | Set the metric name. |
| help | Set an additional description. |
| constant_labels | Assign a set of key-value pairs (= labels) to the metric. All these labels are propagated to each time series within the metric. |
| std::runtime_exception | on invalid metric or label names. |
Example usage:
To finish the configuration of the Counter metric, register it with Register(Registry&).
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Gauge > prometheus::BuildGauge | ( | ) |
Return a builder to configure and register a Gauge metric.
Every metric is uniquely identified by its name and a set of key-value pairs, also known as labels. Prometheus's query language allows filtering and aggregation based on metric name and these labels.
This example selects all time series that have the http_requests_total metric name:
http_requests_total
It is possible to assign labels to the metric name. These labels are propagated to each dimensional data added with Add(). For example if a label job= "prometheus" is provided to this constructor, it is possible to filter this time series with Prometheus's query language by appending a set of labels to match in curly braces ({})
http_requests_total{job= "prometheus"}
For further information see: Querying Basics
| name | Set the metric name. |
| help | Set an additional description. |
| constant_labels | Assign a set of key-value pairs (= labels) to the metric. All these labels are propagated to each time series within the metric. |
| std::runtime_exception | on invalid metric or label names. |
Example usage:
To finish the configuration of the Gauge metric register it with Register(Registry&).
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Histogram > prometheus::BuildHistogram | ( | ) |
Return a builder to configure and register a Histogram metric.
Every metric is uniquely identified by its name and a set of key-value pairs, also known as labels. Prometheus's query language allows filtering and aggregation based on metric name and these labels.
This example selects all time series that have the http_requests_total metric name:
http_requests_total
It is possible to assign labels to the metric name. These labels are propagated to each dimensional data added with Add(). For example if a label job= "prometheus" is provided to this constructor, it is possible to filter this time series with Prometheus's query language by appending a set of labels to match in curly braces ({})
http_requests_total{job= "prometheus"}
For further information see: Querying Basics
| name | Set the metric name. |
| help | Set an additional description. |
| constant_labels | Assign a set of key-value pairs (= labels) to the metric. All these labels are propagated to each time series within the metric. |
| std::runtime_exception | on invalid metric or label names. |
Example usage:
To finish the configuration of the Histogram metric register it with Register(Registry&).
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Info > prometheus::BuildInfo | ( | ) |
Return a builder to configure and register a Info metric.
Every metric is uniquely identified by its name and a set of key-value pairs, also known as labels. Prometheus's query language allows filtering and aggregation based on metric name and these labels.
This example selects all time series that have the http_requests_total metric name:
http_requests_total
It is possible to assign labels to the metric name. These labels are propagated to each dimensional data added with Add(). For example if a label job= "prometheus" is provided to this constructor, it is possible to filter this time series with Prometheus's query language by appending a set of labels to match in curly braces ({})
http_requests_total{job= "prometheus"}
For further information see: Querying Basics
| name | Set the metric name. |
| help | Set an additional description. |
| constant_labels | Assign a set of key-value pairs (= labels) to the metric. All these labels are propagated to each time series within the metric. |
| std::runtime_exception | on invalid metric or label names. |
Example usage:
To finish the configuration of the Info metric, register it with Register(Registry&).
| PROMETHEUS_CPP_CORE_EXPORT detail::Builder< Summary > prometheus::BuildSummary | ( | ) |
Return a builder to configure and register a Summary metric.
Every metric is uniquely identified by its name and a set of key-value pairs, also known as labels. Prometheus's query language allows filtering and aggregation based on metric name and these labels.
This example selects all time series that have the http_requests_total metric name:
http_requests_total
It is possible to assign labels to the metric name. These labels are propagated to each dimensional data added with Add(). For example if a label job= "prometheus" is provided to this constructor, it is possible to filter this time series with Prometheus's query language by appending a set of labels to match in curly braces ({})
http_requests_total{job= "prometheus"}
For further information see: Querying Basics
| name | Set the metric name. |
| help | Set an additional description. |
| constant_labels | Assign a set of key-value pairs (= labels) to the metric. All these labels are propagated to each time series within the metric. |
| std::runtime_exception | on invalid metric or label names. |
Example usage:
To finish the configuration of the Summary metric register it with Register(Registry&).
| PROMETHEUS_CPP_CORE_EXPORT bool prometheus::CheckLabelName | ( | const std::string & | name, |
| MetricType | type | ||
| ) |
| PROMETHEUS_CPP_CORE_EXPORT bool prometheus::CheckMetricName | ( | const std::string & | name | ) |