Metrics

Description

Metrics is used to configure monitoring metrics to your service.

Specification

List of all available properties for a Route trait.

  1. name: my-app-name
  2. services:
  3. my-service-name:
  4. ...
  5. metrics:
  6. format: "prometheus"
  7. port: 8080
  8. path: "/metrics"
  9. scheme: "http"
  10. enabled: true

Properties

NameTypeDescriptionNotes
Pathstringthe metrics path of the service[default to /metrics]
Formatstring+format of the metrics, default as prometheus[default to prometheus]
Schemestring[default to http]
Enabledbool[default to true]
Portint32the port for metrics, will discovery automatically by default[default to 0], >=1024 & <=65535
Selectormap[string]stringthe label selector for the pods, will discovery automatically by default[optional]