Skip to content

Conversation

@laxmanchekka
Copy link
Contributor

Description

Support for log4j metrics

Testing

Local Testing.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

NA.

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Merging #60 (59664ab) into main (4b10d8a) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main      #60      +/-   ##
============================================
+ Coverage     69.44%   69.50%   +0.05%     
  Complexity      106      106              
============================================
  Files            15       15              
  Lines           563      564       +1     
  Branches         32       32              
============================================
+ Hits            391      392       +1     
  Misses          153      153              
  Partials         19       19              
Flag Coverage Δ
unit 69.50% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...viceframework/metrics/PlatformMetricsRegistry.java 82.78% <100.00%> (+0.11%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

new JvmThreadMetrics(DEFAULT_TAGS).bindTo(METER_REGISTRY);
new JvmMemoryMetrics(DEFAULT_TAGS).bindTo(METER_REGISTRY);
new UptimeMetrics(DEFAULT_TAGS).bindTo(METER_REGISTRY);
new Log4j2Metrics(DEFAULT_TAGS).bindTo(METER_REGISTRY);
Copy link
Contributor

Choose a reason for hiding this comment

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

which ones are we interested in ? error rate metric ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

want to monitor and add alert on overall log volume which includes all levels (debug, info, warn, error, fatal).
we can have a different alert at error/warn rate as well.

@laxmanchekka laxmanchekka merged commit 11e9213 into main Dec 6, 2022
@laxmanchekka laxmanchekka deleted the log4j2-metrics branch December 6, 2022 06:02
@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Unit Test Results

  9 files  ±0    9 suites  ±0   13s ⏱️ +4s
31 tests ±0  31 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 11e9213. ± Comparison against base commit 4b10d8a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants