github.com/oam-dev/kubevela@v1.9.11/vela-templates/registry/auto-gen/metrics.yaml (about) 1 # Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. 2 # Definition source cue file: vela-templates/definitions/registry/metrics.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: TraitDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: Configures monitoring metrics for your service. 8 name: metrics 9 namespace: vela-system 10 spec: 11 appliesToWorkloads: 12 - deployments.apps 13 - jobs.batch 14 definitionRef: 15 name: metricstraits.standard.oam.dev 16 extension: 17 install: 18 helm: 19 name: kube-prometheus-stack 20 namespace: monitoring 21 repo: prometheus-community 22 url: https://prometheus-community.github.io/helm-charts 23 version: 9.4.4 24 schematic: 25 cue: 26 template: | 27 outputs: metrics: { 28 apiVersion: "standard.oam.dev/v1alpha1" 29 kind: "MetricsTrait" 30 spec: scrapeService: parameter 31 } 32 parameter: { 33 // +usage=Format of the metrics, default as prometheus 34 // +short=f 35 format: *"prometheus" | string 36 // +usage=The metrics path of the service 37 path: *"/metrics" | string 38 // +usage=The way to retrieve data which can take the values `http` or `https` 39 scheme: *"http" | string 40 enabled: *true | bool 41 // +usage=The port for metrics, will discovery automatically by default 42 port: *0 | >=1024 & <=65535 & int 43 // +usage=The label selector for the pods, will discovery automatically by default 44 selector?: [string]: string 45 } 46 workloadRefPath: spec.workloadRef 47