-
Notifications
You must be signed in to change notification settings - Fork 174
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
Make Orchestrator metrics singleton #1301
base: main
Are you sure you want to change the base?
Conversation
4006b06
to
929a652
Compare
Codecov ReportAttention: Patch coverage is
|
929a652
to
69801ba
Compare
Rebased to Metrics work. There's something funky with DocSum LLM-uservice HuggingFace API endpoint handling, when it is stressed more (it seems to try to connect HF site for every query and eventually fail), but I don't see how it could be related to these changes. |
@eero-t |
69801ba
to
f6fc0e0
Compare
3904431
to
8575e74
Compare
CI fails on something completely unrelated to changes in this PR:
|
3dcd91a
to
f1f9744
Compare
@xiguiw Ok, I've expanded (streaming) It showed odd metrics values, which did not happen with real apps, only with test code. => It was CI "example-test" continues to fail, but it's completely unrelated to this PR, and should not block merging:
|
https://github.com/opea-project/GenAIComps/pull/1340/files and https://github.com/opea-project/GenAIComps/pull/1343/files should fix the CI issue:
But I think it may be cleaner if I submit commits for the metrics test and fix to issues it revealed, as a separate PR. |
I split test code addition and fixes to #1348, it should be merged first. |
So that even if applications instantiate multiple Orchestrators, "megaservice_*" metrics collect data from all of them. Another option would be to add arguments for passing Orchestrator instance names as metric prefixes, to name and differentiate metrics for each Orchestrator instance. However, that would have needed changes in 3 OPEA projects instead of just this one, and dashboards would then need to hard-code those per-application prefixes. Signed-off-by: Eero Tamminen <[email protected]>
04f2407
to
4bfd4ae
Compare
Description
Make Orchestrator metrics singleton, so that even if applications instantiate multiple Orchestrators, "megaservice_*" metrics collect data from all of them.
This is intended as proper fix for the #1280 workaround. When only CI tests created multiple Orchestrator instances, changing metric prefix was fine, but now that applications (e.g. DocSum) do that too, that's not the case any more.
(Another option would be to add arguments for passing Orchestrator instance names as metric prefixes, to name and differentiate metrics for each Orchestrator instance. However, that would have needed changes in 4 OPEA projects instead of just this one, and dashboards & benchmarks would then need to hard-code those per-application prefixes.)
Issues
Type of change
Dependencies
n/a
.Tests