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

{
  "context": "Evaluates whether BuildCounterMetric uses github.com/prometheus/client_model/go to construct and marshal a single counter MetricFamily with exemplar and creation timestamp handling that matches the spec. Scoring is solely based on correct population of the Prometheus proto fields and serialization behavior.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "MetricFamily type",
      "description": "Populates io_prometheus_client.MetricFamily with Name/Help and sets Type to io_prometheus_client.MetricType_COUNTER while emitting exactly one Metric entry.",
      "max_score": 15
    },
    {
      "name": "Counter payload",
      "description": "Uses io_prometheus_client.Metric.Counter with Counter.Value set from input and leaves other metric variants nil to ensure a pure counter metric.",
      "max_score": 20
    },
    {
      "name": "Creation timestamp",
      "description": "Maps CreatedTimestampMs to Counter.CreatedTimestamp using google.golang.org/protobuf/types/known/timestamppb and omits CreatedTimestamp when the input is zero.",
      "max_score": 15
    },
    {
      "name": "Exemplar content",
      "description": "Builds Counter.Exemplar with label pairs, value, and timestamp by setting Exemplar.Label, Exemplar.Value, and Exemplar.Timestamp; omits the exemplar when exemplar inputs are absent.",
      "max_score": 20
    },
    {
      "name": "Label pairs",
      "description": "Converts input label maps into []*io_prometheus_client.LabelPair on Metric.Label and (when present) Exemplar.Label with correct name/value mapping.",
      "max_score": 10
    },
    {
      "name": "Serialization",
      "description": "Serializes the MetricFamily via proto.Marshal (or equivalent) from google.golang.org/protobuf/proto and returns the resulting bytes without altering the proto structure post-marshal.",
      "max_score": 10
    },
    {
      "name": "Validation errors",
      "description": "Rejects invalid inputs (e.g., empty Name or negative ExemplarTimestampMs) with an error before marshaling and without returning serialized bytes.",
      "max_score": 10
    }
  ]
}