Skip to content

Instantly share code, notes, and snippets.

@echauchot
Created July 7, 2020 12:29
Gauge gauge = Metrics.gauge( "namespace", "gauge1");
@ProcessElement
public void processElement(ProcessContext context) {
Integer element = context.element();
// create a gauge (latest value received) of the values
gauge.set(element);
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment