The prometheus.Counter class
The prometheus.Counter class provides methods for recording cumulative
metrics that can only increase, such as total requests and timeout errors.
This class is provided in the
prometheus library; to
use this class, import the prometheus package
with:IMPORT prometheusOnce the class has been instantiated with prometheus.Counter.create(), you can use its class methods in your program.
For more information on Prometheus monitoring, refer to the Genero Application Server User Guide