-
Notifications
You must be signed in to change notification settings - Fork 805
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
logback instrumentation module for 1.X #1091
Comments
yes - it's a good opportunity for a redesign and a pr would be welcome |
can i work on this issue ? |
yes, that would be great |
Hi @zeitlinger can you assign me to this issue ? |
@zeitlinger Thanks for assigning me! I'll start working on it and update you soon |
@Tharanishwaran if you would like to take the code from my original post as a starting point, I think the questions that need some attention are:
|
@lesiak Thank you for your detailed suggestions. They're extremely helpful as I start working on this issue. Here's my plan:
Additionally, I'll consider handling custom log levels and potential configuration options. I'll provide updates as I progress. Thank you again for your guidance |
I don't see a lot of configuration options. |
@lesiak Thanks for the tips! I'll check out the MeterBinder approach and custom Logback filters. I'll keep it simple otherwise. I'll let you know how it goes as I work on it. |
In Prometheus client 1.X, an equivalent for
simpleclient_logback
is missing.simpleclient_logback
contained only one classInstrumentedAppender
.It is easy to come up with an equivalent for 1.X (code below) but it would be great to have official support for both logback and log4j2.
I think a prominent use case is a high number of error logs from a given logger in a given time window.
Code for 1.X
As 1.X is a good opportunity to redesign, is this one-to-one approach a good one and can be submitted as an MR?
I've seen an alternative in form of TurboFilter in Micrometer LogbackMetrics but appender approach seems more straightforward to me.
The text was updated successfully, but these errors were encountered: