Skip to content
TestLookupTestLookup
Search Ctrl K

Search TestLookup

Enter a term to search the local static index.

    PrometheusMetricTemplate

    Fields

    One admin-defined metric template; the server substitutes {service} (escaped) — never model PromQL.

    4 fields
    id · required
    string
    label · required
    string
    promql · required
    string
    unit
    string
    Raw schema (JSON)
    {
      "additionalProperties": false,
      "description": "One admin-defined metric template; the server substitutes ``{service}`` (escaped) — never model PromQL.",
      "properties": {
        "id": {
          "pattern": "^[a-z][a-z0-9_]{1,39}$",
          "title": "Id",
          "type": "string"
        },
        "label": {
          "maxLength": 80,
          "minLength": 1,
          "title": "Label",
          "type": "string"
        },
        "promql": {
          "maxLength": 1000,
          "minLength": 1,
          "title": "Promql",
          "type": "string"
        },
        "unit": {
          "default": "count",
          "title": "Unit",
          "type": "string"
        }
      },
      "required": [
        "id",
        "label",
        "promql"
      ],
      "title": "PrometheusMetricTemplate",
      "type": "object"
    }

    2 endpoints send or return this schema, on its own or inside another schema.