CRI-O · API Governance Rules
CRI-O — metrics rules
Spectral linting rules defining API design standards and conventions for CRI-O.
7 Rules
error 6
warn 1
Authorship not recorded
No authorship marker is recorded for this file. It is not presented as the provider's; it was most likely written by an API Evangelist pass before outputs were stamped.
Rule Categories
cri
Rules
error
cri-o-metrics-info-license
API info object should declare the Apache 2.0 license.
$.info.license
warn
cri-o-metrics-server-port
Server URL should reference the default metrics port 9090.
$.servers[*].url
error
cri-o-metrics-paths
API must define the /metrics path.
$.paths
error
cri-o-metrics-get-only
Metrics endpoint must only support GET.
$.paths['/metrics']
error
cri-o-metrics-text-plain-response
Metrics 200 response must be text/plain (Prometheus exposition format).
$.paths['/metrics'].get.responses.200.content
error
cri-o-metrics-operation-id
Operations must define an operationId.
$.paths.*.get
error
cri-o-metrics-tags
Operations must define tags.
$.paths.*.get
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.