CtrlK
BlogDocsLog inGet started
Tessl Logo

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

Data model artifacts for Prometheus

Overall
score

93%

Evaluation93%

1.13x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "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
    }
  ]
}

Install with Tessl CLI

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

tile.json