Skip to main content
Version: v0.12

prometheus

Schema Prometheus

Prometheus can be used to define monitoring requirements

Attributes

nametypedescriptiondefault value
pathstrThe path to scrape metrics from."/metrics"
portstrThe 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.container ports when scraping pod (monitorType is pod) and service port when scraping service (monitorType is service)

Examples

import monitoring as m

"monitoring": m.Prometheus {
path: "/metrics"
port: "web"
}