Metrics

    Dapr exposes a Prometheus metrics endpoint that you can scrape to gain a greater understanding of how Dapr is behaving and to setup alerts for specific conditions.

    The default metrics port is 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

    Each Dapr system process emits Go runtime/process metrics by default and have their own metrics: