You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The __send-iconnection data corresponds to the following code in Storm's Client.java:
@OverridepublicObjectgetState() {
LOG.info("Getting metrics for client connection to {}", dstAddressPrefixedName);
HashMap<String, Object> ret = newHashMap<String, Object>();
ret.put("reconnects", totalConnectionAttempts.getAndSet(0));
ret.put("sent", messagesSent.getAndSet(0));
ret.put("pending", pendingMessages.get());
ret.put("lostOnSend", messagesLost.getAndSet(0));
ret.put("dest", dstAddress.toString());
Stringsrc = srcAddressName();
if (src != null) {
ret.put("src", src);
}
returnret;
}
The __recv-iconnection data corresponds to the following code in Storm's Server.java:
publicObjectgetState() {
LOG.info("Getting metrics for server on port {}", port);
HashMap<String, Object> ret = newHashMap<String, Object>();
ret.put("dequeuedMessages", messagesDequeued.getAndSet(0));
ArrayList<Integer> pending = newArrayList<Integer>(pendingMessages.length);
for (AtomicIntegerp: pendingMessages) {
pending.add(p.get());
}
ret.put("pending", pending);
HashMap<String, Integer> enqueued = newHashMap<String, Integer>();
Iterator<Map.Entry<String, AtomicInteger>> it = messagesEnqueued.entrySet().iterator();
while (it.hasNext()) {
Map.Entry<String, AtomicInteger> ent = it.next();
//Yes we can delete something that is not 0 because of races, but that is OK for metricsAtomicIntegeri = ent.getValue();
if (i.get() == 0) {
it.remove();
} else {
enqueued.put(ent.getKey(), i.getAndSet(0));
}
}
ret.put("enqueued", enqueued);
returnret;
}
New metrics were added in the upcoming Storm v0.10.0 release for the inter-worker messaging layer.
An example of a
__send-iconnection
DataPoint:An example of a
__recv-iconnection
DataPoint:At a minimum, we should be able to see queue sizes and pending messages fed into Graphite.
The text was updated successfully, but these errors were encountered: