shink commented on issue #2094:
URL: 
https://github.com/apache/incubator-inlong/issues/2094#issuecomment-1004554388


   It seems that this is because these metrics belong to instances rather than 
classes, so they will be registered repeatedly when creating multiple 
instances. A simple solution is to make these metrics static.
   
   
https://github.com/apache/incubator-inlong/blob/ea29797d36526f735fd7e7e4fa506430b4e79b1e/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/metrics/SourcePrometheusMetrics.java#L31-L39


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to