package
1.1.2
Repository: https://github.com/grafana/mimir-proxies.git
Documentation: pkg.go.dev

# Functions

AllHostTagsPrompbLabel just creates an AllHostTags prompb.Label value in the format that FromAllHostTagsLabelValue method understands It lowercases the input and replaces invalid characters by underscores before storing them, but it doesn't do any other kind of assumption on the underlying data.
ExtractMetricTags extracts all the tags stored in a Prometheus model.Metric.
ExtractTagsFromLabel extracts the tags that a label provides This method assumes that the label provides is not an internal one, i.e., IsInternalLabel(name) == false.
FromAllHostTagsLabelValue parses the value of the AllHostTagsLabel returning the tags originally stored in it.
No description provided by the author
IsInternalMetricName returns true for metric names created using MakeInternalMetricName.
IsUnnamedTagLabelName returns true if label name corresponds to an unnamed tag.
MakeInternalLabelName transforms a string into an internal label name that will not collide with customer-defined labels.
MakeInternalMetricName transforms a string into an internal metric name that will not collide with customer-defined metrics.
MetricToProm translates DataDog metric names into valid Prometheus metrics, previously removing any invalid for DataDog characters.
NewTag creates a new Tag model from a single Tag string, it provides access to information like the tag name and whether it's unnamed or not.
NewTagFromKeyValue builds a tag from a know key:value pair.
TagsToLabels maps a tag slice to Labels.
UnescapeLabelName provides the original (except for invalid chars) name of the tag stored in a Prometheus label name.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Tag represents a Datadog Tag and it's used to avoid splitting the tag to understand its underlying nature again and again.

# Type aliases

Labels represents a set of prometheus labels Build one of these using make(Labels), add tags to it using the methods.