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"
}Used by endpoints
Section titled “Used by endpoints”2 endpoints send or return this schema, on its own or inside another schema.
GET/api/v1/settings/integrations— Get Integrations ConfigPUT/api/v1/settings/integrations— Update Integrations Config
Used by schemas
Section titled “Used by schemas”More details
Section titled “More details”- Specification: OpenAPI JSON