Document the new fields in Configuration's tracing section. (#983)

* Document the new fields in Configuration's tracing section.

* Also document the 'Metrics' section
This commit is contained in:
Nghia Tran 2020-12-07 21:03:32 -08:00 committed by GitHub
parent 9787d1c2f9
commit 2c0933084c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 9 deletions

View File

@ -43,6 +43,7 @@ Note: There are more [Kubernetes annotations]({{< ref "kubernetes-annotations.md
The following configuration settings can be applied to Dapr application sidecars;
- [Tracing](#tracing)
- [Metrics](#metrics)
- [Middleware](#middleware)
- [Scoping secrets for secret stores](#scoping-secrets-for-secret-stores)
- [Access control allow lists for service invocation](#access-control-allow-lists-for-service-invocation)
@ -56,14 +57,17 @@ The `tracing` section under the `Configuration` spec contains the following prop
```yml
tracing:
samplingRate: "1"
samplingRate: "1"
zipkin:
endpointAddress: "http://zipkin.default.svc.cluster.local:9411/api/v2/spans"
```
The following table lists the properties for tracing:
| Property | Type | Description |
|--------------|--------|-------------|
| samplingRate | string | Set sampling rate for tracing to be enabled or disabled.
| `samplingRate` | string | Set sampling rate for tracing to be enabled or disabled.
| `zipkin.endpointAddress` | string | Set the Zipkin server address.
`samplingRate` is used to enable or disable the tracing. To disable the sampling rate ,
@ -71,6 +75,25 @@ set `samplingRate : "0"` in the configuration. The valid range of samplingRate i
See [Observability distributed tracing]({{< ref "tracing.md" >}}) for more information
#### Metrics
The metrics section can be used to enable or disable metrics for an application.
The `metrics` section under the `Configuration` spec contains the following properties:
```yml
metrics:
enabled: true
```
The following table lists the properties for metrics:
| Property | Type | Description |
|--------------|--------|-------------|
| `enabled` | boolean | Whether metrics should to be enabled.
See [metrics documentation]({{< ref "metrics.md" >}}) for more information
#### Middleware
Middleware configuration set named Http pipeline middleware handlers