Skip to content

Commit 5cea748

Browse files
[docs] update documentation on logging
1 parent afb6b16 commit 5cea748

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/modelserving/logger/logger.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,34 @@ predictor:
180180
storageUri: gs://kfserving-examples/models/sklearn/1.0/model
181181
```
182182
183+
## Inference Logger with Inference Service Annotation
184+
185+
The inference service annotations can be included in the log message by specifying the annotation keys in the `metadataAnnotations` field
186+
of the InferenceService CRD. These annotations are included in the CloudEvent extension attribute `annotations`.
187+
188+
```yaml
189+
apiVersion: serving.kserve.io/v1beta1
190+
kind: InferenceService
191+
metadata:
192+
name: sklearn-iris
193+
annotations:
194+
model-version: "4"
195+
api-standard: "oip"
196+
created-by: "worker-n"
197+
spec:
198+
predictor:
199+
logger:
200+
mode: all
201+
url: http://message-dumper.default/
202+
metadataAnnotations:
203+
- "model-version"
204+
- "api-standard"
205+
- "created-by"
206+
model:
207+
modelFormat:
208+
name: sklearn
209+
storageUri: gs://kfserving-examples/models/sklearn/1.0/model
210+
```
183211
## Inference Logger with TLS
184212

185213
The InferenceService logger can be configured to use TLS for secure communication. The logger can be configured to use TLS by configuring the logger configuration in the `inferenceservice-config` ConfigMap.

0 commit comments

Comments
 (0)