A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content

prometheus-scrape

Expose port and allow prometheus to scrape the service.

Type: trait. From: the prometheus-server addon.

Parameters​

port int default 8080
Specify the port to be scraped
path string default /metrics
Specify the path to be scraped
selector map[string]string
Specify the selector of the service. In most cases, you don't need to set it.
type string default ClusterIP
Specify the service type.