mirror of https://github.com/dapr/docs.git
fix link, apply suggestion
Signed-off-by: Jake Engelberg <jake@diagrid.io>
This commit is contained in:
parent
8a6f0d69c9
commit
a44a96af10
|
@ -72,7 +72,7 @@ spec:
|
|||
|
||||
## Configuring metrics for error codes
|
||||
|
||||
You can enable additional metrics for [Dapr API error codes](https://github.com/dapr/dapr/blob/master/docs/reference/api/error_codes/) by setting `spec.metrics.recordErrorCodes` to `true`. Dapr APIs which communicate back to its caller may return standardized error codes. As described in the [Dapr development docs](https://github.com/dapr/dapr/blob/master/docs/development/dapr-metrics.md), a new metric called `error_code_total` will be recorded, which will allow monitoring of error codes triggered by application, code, and category. See [package errorcodes](https://github.com/dapr/dapr/blob/master/pkg/messages/errorcodes/errorcodes.go) for specific codes and categories.
|
||||
You can enable additional metrics for [Dapr API error codes](https://docs.dapr.io/reference/api/error_codes/) by setting `spec.metrics.recordErrorCodes` to `true`. Dapr APIs which communicate back to their caller may return standardized error codes. As described in the [Dapr development docs](https://github.com/dapr/dapr/blob/master/docs/development/dapr-metrics.md), a new metric called `error_code_total` is recorded, which allows monitoring of error codes triggered by application, code, and category. See [the `errorcodes` package](https://github.com/dapr/dapr/blob/master/pkg/messages/errorcodes/errorcodes.go) for specific codes and categories.
|
||||
|
||||
Example configuration:
|
||||
```yaml
|
||||
|
@ -90,15 +90,15 @@ spec:
|
|||
Example metric:
|
||||
```json
|
||||
{
|
||||
app_id="publisher-app",
|
||||
category="state",
|
||||
dapr_io_enabled="true",
|
||||
error_code="ERR_STATE_STORE_NOT_CONFIGURED",
|
||||
instance="10.244.1.64:9090",
|
||||
job="kubernetes-service-endpoints",
|
||||
namespace="my-app",
|
||||
node="my-node",
|
||||
service="publisher-app-dapr"
|
||||
"app_id": "publisher-app",
|
||||
"category": "state",
|
||||
"dapr_io_enabled": "true",
|
||||
"error_code": "ERR_STATE_STORE_NOT_CONFIGURED",
|
||||
"instance": "10.244.1.64:9090",
|
||||
"job": "kubernetes-service-endpoints",
|
||||
"namespace": "my-app",
|
||||
"node": "my-node",
|
||||
"service": "publisher-app-dapr"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue