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-4/

{
  "context": "Evaluates whether the solution builds and serializes Prometheus summary metrics using github.com/prometheus/client_model/go types. Checks correct population of summary fields, construction and ordering of quantile entries, wrapping in metric containers, and protobuf marshaling behavior.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Summary fields",
      "description": "Uses github.com/prometheus/client_model/go (`dto`) Summary with SampleCount and SampleSum populated via proto helper functions (e.g., proto.Uint64/proto.Float64) instead of bare values.",
      "max_score": 30
    },
    {
      "name": "Quantile entries",
      "description": "Creates one dto.Quantile per requested phi with Quantile and Value pointers set, keeps entries sorted by phi ascending, and omits placeholders for invalid inputs.",
      "max_score": 30
    },
    {
      "name": "Metric wrapping",
      "description": "Places the summary inside a dto.Metric (and, if emitting a family, sets MetricType_SUMMARY on dto.MetricFamily) rather than encoding a custom struct.",
      "max_score": 20
    },
    {
      "name": "Protobuf marshal",
      "description": "Serializes dependency types with proto.Marshal from google.golang.org/protobuf/proto, returning those bytes and propagating marshal errors.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

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

tile.json