or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
golangpkg:golang/github.com/prometheus/client_model@v0.6.2
tile.json

tessl/golang-github-com-prometheus--client-model

tessl install tessl/golang-github-com-prometheus--client-model@0.6.1

Data 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%

rubric.jsonevals/scenario-4/

{
  "context": "Evaluates how the solution uses github.com/prometheus/client_model/go to build and serialize a single gauge MetricFamily. Focuses on correct gauge typing, value and label mapping, optional timestamp handling, and protobuf output.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Gauge family",
      "description": "Builds a client_model.MetricFamily with Name, Help, and Unit set from input and Type assigned to client_model.MetricType_GAUGE.",
      "max_score": 20
    },
    {
      "name": "Gauge metric",
      "description": "Creates exactly one client_model.Metric within the family containing a populated client_model.Gauge payload and no other metric types.",
      "max_score": 20
    },
    {
      "name": "Value set",
      "description": "Assigns the gauge value via the Gauge.Value field (or accessor like GetValue) to reflect the requested float without additional wrapping or counters.",
      "max_score": 15
    },
    {
      "name": "Labels encoded",
      "description": "Maps provided labels into []*client_model.LabelPair with both Name and Value set; rejects or skips entries with empty names rather than emitting blank client_model.LabelPair names.",
      "max_score": 15
    },
    {
      "name": "Timestamp optional",
      "description": "Populates Metric.TimestampMs only when a timestamp is provided and leaves it unset when omitted, using the client_model Metric timestamp field directly.",
      "max_score": 10
    },
    {
      "name": "Proto output",
      "description": "Serializes the client_model.MetricFamily to bytes using proto.Marshal (or equivalent from google.golang.org/protobuf/proto) and returns that buffer.",
      "max_score": 20
    }
  ]
}