Is there an example how to use metrics within canton
App Development2 posts199 viewsLast activity Sep 2022
DA
DarkoOP
Sep 2022I’m aware of the page Monitoring — Daml SDK 2.3.6 documentation explaining the configuration for metrics, but is there an example one could reference?
Currently it’s not clear if the metrics are being pushed out to prometheus/graphite or if the data is being scraped from the canton components.
MA
MatthiasSchmalz
Sep 2022Not sure what you mean by “example one could reference”. Could you please clarify?
For prometheus/graphite, Canton pushes the metric values to the metrics db (prometheus/graphite). For JMX, the metrics viewer will pull (i.e. scrape) the metric values from the Canton components.
Please don’t hesitate to ask further questions.