alibaba / alibaba/metrics

Too much logs are outputted

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
558
Forks
143
PR merge metrics
No merged PRs in 30d

Description

When the number of metrics reaches the upper limit, a warn log will be output every time:

```
[ WARN ] [2019-04-11 20:00:42] 65634a0c4570ce860ea9f5410eeedb3a- metrics size > 5000, a nop metric will be returned. name: middleware.tomcat.http.request.path{path=xxx.com/isExistNumber.do}
```

This might introduce the risk to fulfil the disk.
Need to do some trick here. For example, output the warn message a few times and then stop.

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by searching for the warning text and the metric-count limit handling, then reproduce repeated over-limit metric creation. Done means the warning output is bounded while the nop metric behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.