The prometheus package

These topics cover the classes for the prometheus package.

The following classes provided in the "prometheus" extension package can be used to expose metrics for integration with a monitoring platform such as Prometheus. For more information on Prometheus monitoring, refer to the Genero Application Server User Guide

The package provides the Counter, Gauge, and Histogram metric types. The Summary type defined by Prometheus is not supported.

A metric records information about your program over time, such as how often an action is used or how many sessions are open. You create each metric once, giving it a name, a description, and the label names that divide it into series, then update it as the program runs.

The values do not stay in the program. The GAS collects and publishes them for a Prometheus server to read, so the metric records nothing until Prometheus is enabled. For how to enable it, go to Prometheus FGLPROFILE configuration.

Metric names are global to the GAS, so two programs that register the same name share its series unless a label value tells them apart.