opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Add jmx exporter

Open maneeshbhunwal123 opened this issue 4 years ago • 6 comments

Is your feature request related to a problem? Please describe.

Describe the solution you'd like Send opentelemetery collected metrics to jmx

Describe alternatives you've considered

Additional context There are few exporters written already but i dont see support for writing to jmx mean. Can we add a exporter for this as well?

maneeshbhunwal123 avatar Jan 14 '21 05:01 maneeshbhunwal123

I'm not opposed to this, but it's unlikely that the maintainers of this project will have time to do this in the near future. Would you be willing to contribute code for this?

jkwatson avatar Jan 14 '21 16:01 jkwatson

i will discuss internally and get back.

maneeshbhunwal123 avatar Jan 15 '21 04:01 maneeshbhunwal123

@maneeshbhunwal123 Some time has passed, any more thoughts on this?

Writing to JMX feels like an unusual use case to me. Were you thinking about writing to a remote MBean or local to the same JVM? In any case, would be interested to hear what your use case is, and if this request is still relevant/meaningful. Thanks.

breedx-splk avatar Nov 05 '21 16:11 breedx-splk

we are publishing to local mbean. there is a sidecar process running which keep on reading values from mbean, and send it to remote server. Where it can be plotted using grafana.

maneeshbhunwal123 avatar Nov 06 '21 02:11 maneeshbhunwal123

we are publishing to local mbean. there is a sidecar process running which keep on reading values from mbean, and send it to remote server. Where it can be plotted using grafana.

Interesting and unusual use case, thanks for sharing. Are you still considering writing an exporter for this? Just curious.

breedx-splk avatar Nov 09 '21 16:11 breedx-splk

for now we used codehale metric registory because both aggregation and jmx reporter was not there at that point of time.

I can not commit to writing exporter at this time. But i believe it should not take too much time, as i have seen codehale jmx repoter code, and it was straight foreward.

maneeshbhunwal123 avatar Nov 09 '21 16:11 maneeshbhunwal123

A JMX metric exporter is outside of the defined project scope. If you still have interest in this, consider contributing it to opentelemetry-java-contrib.

jack-berg avatar Nov 30 '23 22:11 jack-berg