If the application is configured such that METRICS
is true, various metrics using prom-client are kept track of and exposed at port http://localhost:${PROMETHEUS_PORT}/metrics
. The recommended default metrics are also exposed.
This is a histogram that keeps track of the durations in seconds for various async actions of a specific type.
Labels:
['type', 'action', 'token']
Example labels:
{type="report",action="getSortedOracles",token="StableToken"}
Valid types and their actions:
type: report
actions: getSortedOracles, report, send, waitReceipt, getTransaction
type: expiry
actions: getSortedOracles, isOldestReportExpired, removeExpiredReports, send, waitReceipt, getTransaction
This is a counter that keeps track of the total number of errors in various contexts.
Labels:
['context']
Example labels:
{context="report"}
Valid contexts:
type Context = 'app' | 'block_header_subscription' | 'wallet_init' | 'expiry' | 'report' | 'report_price' | Exchange
This is a histogram that keeps track of the API request durations in seconds for each exchange.
Labels:
['exchange', 'endpoint', 'pair']
Example labels:
{exchange="Bittrex",endpoint="markets/CELO-USD/ticker",pair="CELO/USD"}
This is a counter that shows how many API request errors have occurred for an exchange, endpoint, and either an HTTP status code or another type of error (fetching or json parsing).
Labels:
['exchange', 'endpoint', 'pair', 'type']
Example labels:
{exchange="Bittrex",endpoint="markets/CELO-USD/ticker",pair="CELO/USD",type="404"}
{exchange="Bittrex",endpoint="markets/CELO-USD/ticker",pair="CELO/USD",type="fetch"}
{exchange="Bittrex",endpoint="markets/CELO-USD/ticker",pair="CELO/USD",type="json_parse"}
This is a gauge that indicates the number of the most recent block header seen when using block-based reporting.
Labels:
['type']
Example labels:
{type="assigned"}
Valid types:
all, assigned
This is a gauge to show the most recently evaluated price to report when using block-based reporting.
Labels:
['token']
Example labels:
{token="StableToken"}
This is a gauge that shows price and weight for a configured PriceSource.
Labels:
['pair', 'source', 'property']
Example labels:
{pair="CELOEUR",source="COINBASE:CGLD-EUR:false",property="price"}
Valid property values:
price, weight
This is a counter that counts the number of reports by trigger.
Labels:
['token', 'trigger']
Example labels:
{token="StableToken",trigger="heartbeat"}
Valid triggers:
timer, heartbeat, price_change
This is a gauge that keeps track of the time in seconds between the last report and the report before that.
Labels:
['token']
Example labels:
{token="StableToken"}
This is a gauge that keeps track of the price of the most recent Oracle report.
Labels:
['token']
Example labels:
{token="StableToken"}
This is a gauge that provides some properties of the last ticker data retrieved from a particular exchange.
Labels:
['exchange', 'pair', 'property']
Example labels:
{exchange="BITTREX",pair="CELO/USD",property="ask"}
Valid property values:
ask, baseVolume, bid, lastPrice, timestamp
This is a gauge that keeps track of the block number of the most recent transaction of a given type.
Labels:
['type', 'token']
Example labels:
{type="report",token="StableToken"}
Valid types:
report, expiry
This is a gauge that keeps track of the amount of gas provided for the most recent transaction of a given type.
Labels:
['type', 'token']
Example labels:
{type="report",token="StableToken"}
Valid types:
report, expiry
This is a gauge that keeps track of the gas price for the most recent transaction of a given type.
Labels:
['type', 'token']
Example labels:
{type="report",token="StableToken"}
Valid types:
report, expiry
This is a gauge that keeps track of the gas used for the most recent transaction of a given type.
Labels:
['type', 'token']
Example labels:
{type="report",token="StableToken"}
Valid types:
report, expiry
This is a counter that records the number of transactions for a given type that have successfully been mined.
Labels:
['type', 'token']
Example labels:
{type="report",token="StableToken"}
Valid types:
report, expiry
This is a counter that records the number of times the websocket provider has been setup. This only occurs when using block-based reporting, and happens when there is an error with the existing websocket provider.
Labels: none