package
6.8.16+incompatible
Repository: https://github.com/tencentblueking/beats.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
BooleanMetric maps a Prometheus metric to a Metricbeat field of bool type.
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.
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.
OpFilter only processes metrics matching the given filter.
OpLowercaseValue lowercases the value if it's a string.
# Variables
HostParser validates Prometheus URLs.
# Structs
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.