tessl install tessl/golang-github-com-prometheus--client-model@0.6.1Data model artifacts for Prometheus
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.13x
Baseline
Agent success rate without this tile
82%
Produces validated metric label slices from base and override inputs for Prometheus-style metrics.
{"env":"prod","region":"us-east"} with overrides {"region":"eu-west","service":"edge"} returns three label messages ordered by name: env=prod, region=eu-west, service=edge. @testAllowInternal is true, internal labels are preserved and listed after public labels while keeping name ordering inside each group. @test@generates
type LabelSet = map[string]string
type LabelOptions struct {
AllowInternal bool
}
type LabelMessage interface {
GetName() string
GetValue() string
}
func BuildLabels(base LabelSet, overrides LabelSet, opts LabelOptions) ([]LabelMessage, error)
func LabelsToMap(labels []LabelMessage) map[string]stringLabelMessage refers to the dependency's native name/value label message type and must not be replaced with a custom struct.
Provides proto-generated metric messages, including the label message type for name/value pairs.