Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions docs/modelserving/logger/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,34 @@ predictor:
storageUri: gs://kfserving-examples/models/sklearn/1.0/model
```

## Inference Logger with Inference Service Annotation

The inference service annotations can be included in the log message by specifying the annotation keys in the `metadataAnnotations` field
of the InferenceService CRD. These annotations are included in the CloudEvent extension attribute `annotations`.
Copy link
Member

@yuzisun yuzisun Apr 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tylerhyang Can you provide an example cloud event showing the extension attribute ?


```yaml
apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
name: sklearn-iris
annotations:
model-version: "4"
api-standard: "oip"
created-by: "worker-n"
spec:
predictor:
logger:
mode: all
url: http://message-dumper.default/
metadataAnnotations:
- "model-version"
- "api-standard"
- "created-by"
model:
modelFormat:
name: sklearn
storageUri: gs://kfserving-examples/models/sklearn/1.0/model
```
## Inference Logger with TLS

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.
Expand Down