github.com/oam-dev/kubevela@v1.9.11/pkg/cue/testdata/workloads/metrics.cue (about)

     1  #metrics: {
     2  	// +usage=format of the metrics, default as prometheus
     3  	// +short=f
     4  	format:  *"prometheus" | string
     5  	enabled: *true | bool
     6  	port?:   *8080 | >=1024 & <=65535 & int
     7  	// +usage=the label selector for the pods, default is the workload labels
     8  	selector?: [string]: string
     9  }
    10  outputs: metrics: {
    11  	apiVersion: "standard.oam.dev/v1alpha1"
    12  	kind:       "MetricsTrait"
    13  	spec: {
    14  		scrapeService: parameter
    15  	}
    16  }
    17  parameter: #metrics