Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for mlobs sink on logger #554

Merged
merged 1 commit into from
Mar 26, 2024
Merged

Conversation

khorshuheng
Copy link
Collaborator

@khorshuheng khorshuheng commented Mar 20, 2024

Description

This MR update the merlin logger to support writing prediction log instead of inference log to Kafka, via a new type of sink named MLObs sink, which will apply if the log url prefix is "mlobs". Merlin API service itself has not been updated to utilize this new sink. That will be implemented in another PR.

Modifications

  • Add new sink type (mlobs)
  • Update upi package version
  • getTopicName as part of KafkaSink / MLObs Sink methods as opposed to function in main package

Tests

Checklist

  • Added PR label
  • Added unit test, integration, and/or e2e tests
  • Tested locally
  • Updated documentation
  • Update Swagger spec if the PR introduce API changes
  • Regenerated Golang and Python client if the PR introduces API changes

Release Notes


@khorshuheng khorshuheng added the enhancement New feature or request label Mar 20, 2024
@khorshuheng khorshuheng force-pushed the observability-logger branch from 79f80fb to b8f27da Compare March 20, 2024 05:46
@khorshuheng khorshuheng force-pushed the observability-logger branch from b8f27da to c6228d0 Compare March 22, 2024 01:46
@khorshuheng khorshuheng force-pushed the observability-logger branch 3 times, most recently from a790b6f to cd105bc Compare March 25, 2024 07:55
@khorshuheng khorshuheng force-pushed the observability-logger branch from cd105bc to 79bb457 Compare March 25, 2024 07:56
Copy link
Contributor

@ariefrahmansyah ariefrahmansyah left a comment

Choose a reason for hiding this comment

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

lgtm. thanks shu heng!

@ariefrahmansyah ariefrahmansyah merged commit 8184f4b into main Mar 26, 2024
34 checks passed
@ariefrahmansyah ariefrahmansyah deleted the observability-logger branch March 26, 2024 04:30
ariefrahmansyah pushed a commit that referenced this pull request Mar 27, 2024
<!--  Thanks for sending a pull request!  Here are some tips for you:

1. Run unit tests and ensure that they are passing
2. If your change introduces any API changes, make sure to update the
e2e tests
3. Make sure documentation is updated for your PR!

-->
# Description
<!-- Briefly describe the motivation for the change. Please include
illustrations where appropriate. -->
Related to #554 . This MR add a
new configuration named MLObsLoggerDestinationUrl. If a model which
observability has been enabled is deployed, and logging has been
enabled, the logger will send the logs via MLObs sink as opposed to
KafkaSink.

# Modifications
<!-- Summarize the key code changes. -->

# Tests
<!-- Besides the existing / updated automated tests, what specific
scenarios should be tested? Consider the backward compatibility of the
changes, whether corner cases are covered, etc. Please describe the
tests and check the ones that have been completed. Eg:
- [x] Deploying new and existing standard models
- [ ] Deploying PyFunc models
-->

# Checklist
- [ ] Added PR label
- [ ] Added unit test, integration, and/or e2e tests
- [ ] Tested locally
- [ ] Updated documentation
- [ ] Update Swagger spec if the PR introduce API changes
- [ ] Regenerated Golang and Python client if the PR introduces API
changes

# Release Notes
<!--
Does this PR introduce a user-facing change?
If no, just write "NONE" in the release-note block below.
If yes, a release note is required. Enter your extended release note in
the block below.
If the PR requires additional action from users switching to the new
release, include the string "action required".

For more information about release notes, see kubernetes' guide here:
http://git.k8s.io/community/contributors/guide/release-notes.md
-->

```release-note

```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants