Get available metrics
Learn how to list available metrics
Description
Sentry supports tens of thousands of metrics on which alerts can be configured. To list available metrics, search for specific metrics and get data on this metrics, the following route can be used.
Endpoint
GET https://sentry.aleno.ai/metrics
Query parameters
chainId
required
string
Id of the chain
page
required
number
page number (max 100 metrics returned)
tokenAddresses
optional
string list
Target token addresses (should be in lower case). If provided, metrics related to provided addresses will be selected.
poolAddresses
optional
string list
Target pool addresses (should be in lower case). If provided, metrics related to provided addresses will be selected.
keys
optional
string list
Target metric keys (each metric is defined with a unique key). If provided, metrics corresponding to provided keys will be selected.
To get all available metrics: simply don't add query parameters: GET /metrics
Each query parameter is optional. If multiple query parameters are provided, it will be processed as OR condition. For instance ?tokenAddresses=A,B&poolAddresses=C,D will query: "metrics related to token A or B" OR "metrics related to pool C or D".
Payload
No payload.
CURL example
Result
Returns list of Metric objects supported on Sentry.
Last updated