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

feat: allow dynamically exposing diagnostics for multiple instances #7092

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

czeslavo
Copy link
Contributor

@czeslavo czeslavo commented Feb 6, 2025

What this PR does / why we need it:

Adds multiinstace.DiagnosticsServer and integrates it with multiinstace.Manager to register/unregister currently running instances and expose their config diagnostics data on /{instanceID}/debug/config endpoints.

Which issue this PR fixes:

Part of #7042.

Copy link

codecov bot commented Feb 6, 2025

Codecov Report

Attention: Patch coverage is 96.15385% with 3 lines in your changes missing coverage. Please review.

Please upload report for BASE (feat/kic-as-library@c9e6ea5). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pkg/manager/multiinstance/diagnostics.go 95.2% 1 Missing and 1 partial ⚠️
internal/manager/run.go 92.8% 1 Missing ⚠️
Additional details and impacted files
@@                  Coverage Diff                  @@
##             feat/kic-as-library   #7092   +/-   ##
=====================================================
  Coverage                       ?   77.0%           
=====================================================
  Files                          ?     220           
  Lines                          ?   25159           
  Branches                       ?       0           
=====================================================
  Hits                           ?   19388           
  Misses                         ?    4773           
  Partials                       ?     998           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@czeslavo czeslavo force-pushed the feat/dynamic-diagnostics-server branch from f36c68c to 268bf3d Compare February 7, 2025 08:26
@pull-request-size pull-request-size bot added size/XL and removed size/L labels Feb 7, 2025
@czeslavo czeslavo force-pushed the feat/dynamic-diagnostics-server branch from 268bf3d to 16523dc Compare February 7, 2025 08:30
@pull-request-size pull-request-size bot added size/L and removed size/XL labels Feb 7, 2025
@czeslavo czeslavo force-pushed the feat/dynamic-diagnostics-server branch from 16523dc to 407fb41 Compare February 7, 2025 08:33
@pull-request-size pull-request-size bot added size/XL and removed size/L labels Feb 7, 2025
@czeslavo czeslavo force-pushed the feat/dynamic-diagnostics-server branch 2 times, most recently from 391e806 to e1f9eb9 Compare February 7, 2025 10:15
@czeslavo czeslavo force-pushed the feat/dynamic-diagnostics-server branch from e1f9eb9 to f37d74a Compare February 7, 2025 11:24
@pull-request-size pull-request-size bot added size/L and removed size/XL labels Feb 7, 2025
@czeslavo czeslavo self-assigned this Feb 7, 2025
@czeslavo czeslavo marked this pull request as ready for review February 7, 2025 11:46
@czeslavo czeslavo requested a review from a team as a code owner February 7, 2025 11:46
@czeslavo czeslavo changed the title [WIP] feat: allow dynamically exposing diagnostics for multiple instances feat: allow dynamically exposing diagnostics for multiple instances Feb 7, 2025
pkg/manager/multiinstance/diagnostics.go Outdated Show resolved Hide resolved
pkg/manager/multiinstance/diagnostics.go Show resolved Hide resolved
pkg/manager/multiinstance/manager_test.go Outdated Show resolved Hide resolved
pkg/manager/multiinstance/manager_test.go Outdated Show resolved Hide resolved
test/envtest/multiinstance_manager_diagnostics_test.go Outdated Show resolved Hide resolved
@czeslavo czeslavo force-pushed the feat/dynamic-diagnostics-server branch from 295d146 to 98f50fe Compare February 7, 2025 14:13
@czeslavo czeslavo force-pushed the feat/dynamic-diagnostics-server branch from 98f50fe to 4c29f45 Compare February 7, 2025 14:14
@czeslavo czeslavo requested a review from programmer04 February 7, 2025 14:22
@czeslavo czeslavo requested a review from programmer04 February 7, 2025 14:44
@czeslavo czeslavo merged commit 18d8819 into feat/kic-as-library Feb 7, 2025
41 checks passed
@czeslavo czeslavo deleted the feat/dynamic-diagnostics-server branch February 7, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants