Data model artifacts for Prometheus
Overall
score
93%
Evaluation — 93%
↑ 1.13xAgent success when using this tile
Produce a serialized Prometheus counter metric payload that captures a single sample with contextual labels, an exemplar, and a creation timestamp.
@generates
package eval
type CounterInput struct {
Name string
Help string
Labels map[string]string
Value float64
ExemplarValue float64
ExemplarTimestampMs int64
ExemplarLabels map[string]string
CreatedTimestampMs int64
}
func BuildCounterMetric(input CounterInput) ([]byte, error)Provides Prometheus metric data model types for constructing counter metrics with exemplars and creation timestamps.
Install with Tessl CLI
npx tessl i tessl/golang-github-com-prometheus--client-modeldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10