度量

    Dapr 公开了一个 Prometheus 指标终结点,您可以扫描该终结点,以更深入地了解 Dapr 的行为方式,针对特定条件设置警报。

    默认指标端口为 9090。 This can be overridden by passing the command line argument --metrics-port to Daprd. Additionally, the metrics exporter can be disabled for a specific application by setting the dapr.io/enable-metrics: "false" annotation to your application deployment. With the metrics exporter disabled, daprd will not open the metrics listening port.

    1. apiVersion: dapr.io/v1alpha1
    2. kind: Configuration
    3. namespace: default
    4. spec:
    5. tracing:
    6. samplingRate: "1"
    7. enabled: true

    默认情况下,每个 Dapr 系统进程都会发出 Go 运行时/进程指标,并有自己的指标: