You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
I'm not quite sure how to implement the collection of metrics. Do I create a class that extends one of the collectors (e.g. Counter)? Or can I create a plain class injecting the CollectorRegistry and that is somehow getting called when /metrics is getting hit?
The text was updated successfully, but these errors were encountered:
You need to specify the collectors in your tweede_golf_prometheus configuration section.
At either an action or an event listener you need to get the collector from the registry and observe or inc.
You can add this bundle to your routing and /metrics will be served by the MetricsController, which will collect all the data from the collectors registered to the registry and present it as Prometheus expects.
I'm not quite sure how to implement the collection of metrics. Do I create a class that extends one of the collectors (e.g. Counter)? Or can I create a plain class injecting the CollectorRegistry and that is somehow getting called when
/metrics
is getting hit?The text was updated successfully, but these errors were encountered: