package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Packages

# Functions

BooleanMetric maps a Prometheus metric to a Metricbeat field of bool type.
CompilePatternList compiles a pattern list and returns the list of the compiled patterns.
ExtendedInfoMetric obtains info labels from the given metric and puts them into events matching all the key labels present in the metric.
ExtendedMetric is a metric item that allows extended behaviour through configuration.
InfoMetric obtains info labels from the given metric and puts them into events matching all the key labels present in the metric.
KeyLabel maps a Prometheus label to a Metricbeat field.
KeywordMetric maps a Prometheus metric to a Metricbeat field, stores the given keyword when source metric value is 1.
Label maps a Prometheus label to a Metricbeat field.
LabelMetric maps a Prometheus metric to a Metricbeat field, stores the value of a given label on it if the gauge value is 1.
MatchMetricFamily checks if the given family/metric name matches any of the given patterns.
Metric directly maps a Prometheus metric to a Metricbeat field.
MetricSetBuilder returns a builder function for a new Prometheus metricset using the given mapping.
NewPrometheusClient creates new prometheus helper.
OpFilterMap only processes metrics matching the given filter.
OpLabelKeyPrefixRemover removes prefix from label keys.
OpLowercaseValue lowercases the value if it's a string.
OpMultiplyBuckets multiplies bucket labels in histograms, useful to change units.
OpSetSuffix extends the field's name with the given suffix if the value of the metric is numeric (and not histogram or quantile), otherwise does nothing.
OpUnixTimestampValue parses a value into a Unix timestamp.

# Variables

HostParser validates Prometheus URLs.

# Structs

Configuration for mappings that needs extended treatment.
MetricsMapping defines mapping settings for Prometheus metrics, to be used with `GetProcessedMetrics`.

# Interfaces

LabelMap defines the mapping from Prometheus label to a Metricbeat field.
MetricMap defines the mapping from Prometheus metric to a Metricbeat field.
MetricOption adds settings to Metric objects behavior.
Prometheus helper retrieves prometheus formatted metrics.