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
Similar to hyperledger/firefly#189, it'd be great if the tokens connector had Prometheus metrics for API call count and durations, tokens transferred / minted / burned and etc.
The ff_ prefix is in keeping with other FireFly metric names. The ff_apiserver_* metrics all have labels method, route, and code, again in keeping with other FireFly components.
The ff_event_batch_size metric is useful for tracking how efficiently the blockchain connector is batching up events for token connector to parse. It seems like gauge is the right type of metric for this, but has the downside that if a batch isn't received for some time due to inactivity its value remains at the last recorded value. I've used a timeout to reset it to 0 after 60 seconds, which is cancelled/reset whenever a new batch size is recorded.
The ff_event_batch_ack_interval metric is useful for tracking how long it takes FireFly core to ACK an event batch. Ultimately this ACK rate will determine how frequently the blockchain connector will flow new batches up to TC/FF core.
The ff_blockchain_calls_total metric has a single label, type, which denotes the type of blockchain call being made. These are currently query, sendTransaction and getReceipt.
Similar to hyperledger/firefly#189, it'd be great if the tokens connector had Prometheus metrics for API call count and durations, tokens transferred / minted / burned and etc.
We can leverage https://github.com/siimon/prom-client to get some basic metrics added quickly and then build from there.
The text was updated successfully, but these errors were encountered: