/Gauge.java Secret
Created
July 7, 2020 12:29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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