# Functions

CleanLabels sets label.Name and label.Value to an empty string for all the labels.
FinalizeLabels removes labels with "__" in the beginning (except of "__name__").
GetLabelByName returns label with the given name from labels.
GetScrapeURL makes scrape url and __address_ labels for the given labels and extraParams.
LabelsToString returns Prometheus string representation for the given labels.
LoadRelabelConfigs loads relabel configs from the given path.
ParseRelabelConfigs parses rcs to dst.
ParseRelabelConfigsData parses relabel configs from the given data.
No description provided by the author
No description provided by the author
No description provided by the author
SanitizeLabelName replaces unsupported by Prometheus chars in label names with _.
SanitizeMetricName replaces unsupported by Prometheus chars in metric names with _.
SortLabels sorts labels in alphabetical order.
SplitMetricNameToTokens returns tokens generated from metric name divided by unsupported Prometheus characters See https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels.
No description provided by the author
No description provided by the author
No description provided by the author
WriteMetricRelabelDebug writes /metric-relabel-debug page to w with the corresponding args.
No description provided by the author
No description provided by the author
No description provided by the author
WriteTargetRelabelDebug writes /target-relabel-debug page to w with the corresponding args.

# Structs

DebugStep contains debug information about a single relabeling rule step.
IfExpression represents PromQL-like label filters such as `metric_name{filters...}`.
MultiLineRegex contains a regex, which can be split into multiple lines.
ParsedConfigs represents parsed relabel configs.
RelabelConfig represents relabel config.