Skip to main content
Version: v1.0

Metrics

Description#

Configures monitoring metrics for your service.

Specification#

List of all configuration options for a Metrics trait.

...
format: "prometheus"
port: 8080
path: "/metrics"
scheme: "http"
enabled: true

Properties#

NameDescriptionTypeRequiredDefault
pathThe metrics path of the servicestringtrue/metrics
formatFormat of the metrics, default as prometheusstringtrueprometheus
schemeThe way to retrieve data which can take the values http or httpsstringtruehttp
enabledbooltruetrue
portThe port for metrics, will discovery automatically by defaultinttrue0
selectorThe label selector for the pods, will discovery automatically by defaultmap[string]stringfalse
Last updated on by Jianbo Sun