Snotel is a Java based Doppler Firehose and Metron client. Its name follows the [Loggregator] (https://github.com/cloudfoundry/loggregator) naming convention relating to meteorology (Doppler, Metron, NOAA, etc.) More importantly, the name Snotel was derived from the fact that it was initially created close to the home of [the greatest snow on earth] (http://www.onthesnow.com/news/a/9312/utah-claims-the-greatest-snow-on-earth).
Snotel is still in an early state and the API will change over time.
The Firehose client is built on Netty and RxJava.
An example of using the Firehose client:
try (final Firehose firehose = FirehoseBuilder.create("wss://doppler.cf.teal.springapps.io:443", "bearer eyJh... this is not a valid token")
.skipTlsValidation(true)
.build()) {
firehose
.open()
.toBlocking()
.forEach(System.out::println);
}
The Metron client can be used to emit Dropsonde events to Loggregator via the Metron agent.
An example of using the Metron client:
final MetronClient metronClient = MetronClientBuilder
.create("myorigin")
.build();
metronClient.emitValueMetric("application.uptime", 1, "s");
metronClient.emitCounterEvent("mikes.counter", 5);
metronClient.emitError("mikes.computer", 54321, "Run for the hills! It's about to blow!");