The documentation you are viewing is for Dapr v1.0 which is an older version of Dapr. For up-to-date documentation, see the latest version.

度量

Observing Dapr metrics

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

Configuration (配置)

默认情况下,指标终结点处于启用状态,您可以通过命令行参数 --enable-metrics=false 传递给 Dapr 系统进程来禁用它。

默认指标端口为 9090。 This can be overridden by passing the command line argument --metrics-port to Daprd.

To disable the metrics in the Dapr side car, you can use the metric spec configuration and set enabled: false to disable the metrics in the Dapr runtime.

apiVersion: dapr.io/v1alpha1
kind: Configuration
metadata:
  name: tracing
  namespace: default
spec:
  tracing:
    samplingRate: "1"
  metric:
    enabled: false

度量

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

参考资料

Last modified January 1, 0001