Usage:
sbt "runMain com.spotify.scio.examples.extra.MetricsExample
--project=[PROJECT] --runner=DataflowRunner --region=[REGION NAME]"
Create counters to be incremented inside the pipeline
Distribution to track min, max, count, sum, mean, with optional namespace
Gauge to track a changing value, with job class as namespace
Create and initialize counters from ScioContext
Access metrics inside a lambda function
Create a metric on the fly with dynamic name
Reuse a metric, this will show up as a separate step in the results
Access metric values after job is submitted
s2
is used in 2 different steps in the pipeline
Aggregated value
Values at steps
s2
should contain 2 steps
Dynamic metricsk
Metrics Example