GithubHelp home page GithubHelp logo

gmetric4j's People

Contributors

arcticwaters avatar dpocock avatar knobi avatar minkenlai avatar ngzhian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gmetric4j's Issues

reading default settings from gmond.conf

It would be very useful to read all the default settings from the gmond.conf file if it can be found in one of the usual locations.

It may also be possible to inspect the list of open sockets of any running gmond process to discover configuration details.

UnknownHostException

Protocolv31x.java line 39 InetAddress.getLocalHost().getHostName();

On some machine configurations, getLocalHost() throws UnknownHostException
For example, on a developer machine that does not have a static ip address configured into /etc/hosts for the machine host name, this pesky problem prevents gmetric4j from initializing, even when a spoofName is set.

If we skip getLocalHost() when spoofName is set (since localHostName would not be used), there would be a workaround for this situation.

from old metrics' GangliaReporter to GMetric: how to specify host/group

Hello,

I am migrating from metrics 2 to 3.
In the old yammer metrics' GangliaReporter class, there are two String arguments specifying the host and the "ganglia group name".

GangliaReporter(MetricsRegistry metricsRegistry, String gangliaHost, int port, String groupPrefix)

But following their new API, i.e using a GMetric object to configure the reporter, there is only one "group" argument described in the doc as "the host/group to send the event to".

public GMetric( String group, int port, UDPAddressingMode mode, int ttl) 

As I am relatively new to the concepts involved here, do you have an idea how I could specify the old GangliaReporter's host and group arguments into a GMetric Object?

Thanks in advance.

Dependency on LGPL library

I maintain Metrics which is Apache 2 licensed, and has ganglia as an output. It was brought to my attention that gmetric4j has a dependency on remotetea, which as you know is LGPL licensed. This severely limits its usefulness. Having inspected the code, it seems to me that it would be relatively trivial[citation needed] to reimplement the parts of XDR which are required by ganglia. Is this something you would consider?

ONC/RPC buffer overflow?

I'm getting the following error when sending a metric with 10 attributes. How can I increase this buffer?
I tried changing the udp receive buffer in gmond to 20 mb but that did not help.
info.ganglia.gmetric4j.gmetric.GangliaException: Exception announcing metric
at info.ganglia.gmetric4j.gmetric.GMetric.announce(GMetric.java:138)
at com.googlecode.jmxtrans.model.output.GangliaWriter.internalWrite(GangliaWriter.java:203)
at com.googlecode.jmxtrans.model.output.BaseOutputWriter.doWrite(BaseOutputWriter.java:157)
at com.googlecode.jmxtrans.jmx.ResultProcessor$1.run(ResultProcessor.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.acplt.oncrpc.OncRpcException: ONC/RPC buffer overflow
at org.acplt.oncrpc.XdrBufferEncodingStream.xdrEncodeOpaque(XdrBufferEncodingStream.java:198)
at org.acplt.oncrpc.XdrEncodingStream.xdrEncodeOpaque(XdrEncodingStream.java:167)
at org.acplt.oncrpc.XdrEncodingStream.xdrEncodeDynamicOpaque(XdrEncodingStream.java:148)
at org.acplt.oncrpc.XdrEncodingStream.xdrEncodeString(XdrEncodingStream.java:358)
at info.ganglia.gmetric4j.xdr.v31x.Ganglia_extra_data.xdrEncode(Ganglia_extra_data.java:25)
at info.ganglia.gmetric4j.xdr.v31x.Ganglia_metadata_message.xdrEncode(Ganglia_metadata_message.java:35)
at info.ganglia.gmetric4j.xdr.v31x.Ganglia_metadatadef.xdrEncode(Ganglia_metadatadef.java:25)
at info.ganglia.gmetric4j.xdr.v31x.Ganglia_metadata_msg.xdrEncode(Ganglia_metadata_msg.java:36)
at info.ganglia.gmetric4j.gmetric.Protocolv31x.encodeGMetric(Protocolv31x.java:131)
at info.ganglia.gmetric4j.gmetric.Protocolv31x.announce(Protocolv31x.java:73)
at info.ganglia.gmetric4j.gmetric.GMetric.announce(GMetric.java:136)
... 8 more

New release with Spoofing support

Hello,

I am currently working on porting jmxtrans (which use your project for a GangliaWriter) to maven but I am facing a problem with the gmetric4j jar version currently used which seems to have been built manually. When I use the last gmetric4j from maven central (info.ganglia.gmetric4j:gmetric4j:1.0.2), I see that the Spoofing Support is missing in the jar.

As the Spoofing Support was recently merged in the master (#4) I would like to know if it is possible for you to release a new version of gmetric4j to have this change in Maven Central ?

Thanks in advance for your response

Frederic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.