prometheus
Schema Prometheus
Prometheus can be used to define monitoring requirements
Attributes
Name and Description | Type | Default Value | Required |
---|---|---|---|
path The path to scrape metrics from. | str | /metrics | optional |
port The port to scrape metrics from. When using Prometheus operator, this needs to be the port NAME. Otherwise, this can be a port name or a number. | str | container ports when scraping pod (monitorType is pod) and service port when scraping service (monitorType is service) | optional |
Examples
import catalog.models.schema.v1.monitoring as m
monitoring: m.Prometheus{
path: "/metrics"
port: "web"
}