-
Notifications
You must be signed in to change notification settings - Fork 259
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 Prometheus Support for Choreo Connect #3428
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3428 +/- ##
============================================
- Coverage 27.58% 27.56% -0.03%
+ Complexity 3373 3370 -3
============================================
Files 484 484
Lines 52044 52048 +4
Branches 6350 6350
============================================
- Hits 14356 14346 -10
- Misses 36283 36295 +12
- Partials 1405 1407 +2
☔ View full report in Codecov by Sentry. |
enforcer-parent/enforcer/src/main/resources/prometheus-jmx-config.yml
Outdated
Show resolved
Hide resolved
...test/java/org/wso2/choreo/connect/tests/setup/standalone/CcWithPrometheusMetricsEnabled.java
Show resolved
Hide resolved
...so2/choreo/connect/tests/testcases/standalone/metrics/PrometheusMetricEndpointsTestCase.java
Outdated
Show resolved
Hide resolved
Co-authored-by: SLahiruC <40932779+slahirucd7@users.noreply.github.com>
@@ -196,7 +197,16 @@ func Run(conf *config.Config) { | |||
}) | |||
} | |||
|
|||
logger.LoggerMgw.Info("Starting adapter ....") | |||
logger.LoggerMgw.Info("Starting adapter ....") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proper indentation can be added
|
||
for { | ||
// Start the recordMetrics goroutine | ||
go func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to add a doc comment explaining the pattern usage of go
to create the goroutine and the done <- struct{}{}
and <-done
signal for parallel(to main thread) but sequential(to each call for recordMetrics
) execution of recordMetrics
function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed through PR #3498
Purpose
Approach
Documentation
Related PRs