Support to customize the collect period of JVM relative metrics.#428
Support to customize the collect period of JVM relative metrics.#428wu-sheng merged 5 commits intoapache:mainfrom
Conversation
|
It seems the OAP side will calculate GC time per second. This change should consider more. |
| /** | ||
| * The period in seconds of JVM metrics collection. | ||
| */ | ||
| public static int METRICS_COLLECT_PERIOD = 10; |
There was a problem hiding this comment.
You should not change the default value.
There was a problem hiding this comment.
It is rarely to see thousands threads for a health service.
Could you list which metrics? |
I don't see any necessary gc metrics calculation for every second. On the other hand, Agent record lastest time or count of diff gc phase, and use them to create new metrics in next time collection. |
My bad |
The default value stays and the configuration.md is updated. |
|
Let's wait for @nisiyong feedback. And the CI would fail, I need to wait for both things. |
|
I may have just got COVID-19, I will check it when I get better😿 |
Take care. I am suffering symptoms too. 4 days fever, but it is going down. |
|
Tack care guys. |
| * Clean the trace context which injected into Pulsar MessageImpl after the instance recycled | ||
| * Fix In the higher version of mysql-connector-java 8x, there is an error in the value of db.instance. | ||
| * Add support for KafkaClients 3.2.x | ||
| * Add support for KafkaClients 3.x. |
There was a problem hiding this comment.
@lujiajing1126 I made this. As #429 missed to correct versions.
There was a problem hiding this comment.
Thx, I forgot to fix it there
@dylanforest @wu-sheng Sorry for my late reply, this PR looks good to me. And I should correct what I said before, the agent side will calculate the GC time rather than the OAP side. Currently, the metrics are stored at a minute level in the backend, so I think this is fine. |
Thanks for the clarification.
About this, I want to add a little more. The metrics are I agree, this change should be fine. |
|
BTW @nisiyong Are you feeling better now? |
wu-sheng
left a comment
There was a problem hiding this comment.
LGTM.
@dylanforest I added Unit is second. to the doc and config, to make the new config more clear.
Thanks for your concern, I am much better now. Had a fever for 3 days and it was really painful. |
Same here. 3 days fever. Take enough rest. This doesn't go away immediately. The fever could be back. |
Support to customize the collect period of JVM relative metrics.
[] If this is non-trivial feature, paste the links/URLs to the design doc.
Update the documentation to include this new feature.
Tests(including UT, IT, E2E) are added to verify the new feature.
If it's UI related, attach the screenshots below.
If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes Support to customize the report period of JVM relative metrics. skywalking#10179.
Update the
CHANGESlog.