Hi Community,

Need some information regarding metrics type mentioned in flink documentation.
https://ci.apache.org/projects/flink/flink-docs-stable/ops/metrics.html

For the checkpoint metrics, below metrics are defined as of type gauge. As per 
my understanding gauge type is used to represent a value which can 
increase/decrease whereas counter is used to represent a value which will keep 
increasing. Below metrics will be keep increasing during the job run. Hence 
counter can be appropriate metric type for these. Please share your input on 
this.

numberOfCompletedCheckpoints
The number of successfully completed checkpoints.
Gauge
numberOfFailedCheckpoints
The number of failed checkpoints.
Gauge
totalNumberOfCheckpoints
The number of total checkpoints (in progress, completed, failed).
Gauge

Also "isBackPressured"  metric by the name it indicates as it returns boolean 
value Yes/No. Flink documentation says backpressure is measured as below,

  *   OK: 0 <= Ratio <= 0.10
  *   LOW: 0.10 < Ratio <= 0.5
  *   HIGH: 0.5 < Ratio <= 1
What exactly this metric reports ?

isBackPressured
Whether the task is back-pressured.
Gauge

Thanks,
Suchithra

Reply via email to