-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Pricefeeder Metrics | ||
|
||
## Available metrics | ||
|
||
### `fetched_prices_total` | ||
|
||
The total number of prices fetched from the data sources. This metric is incremented every time the price feeder fetches prices from the data sources. | ||
|
||
**labels**: | ||
|
||
- `source`: The data source from which the price was fetched, e.g. `Bybit`. | ||
- `success`: The result of the fetch operation. Possible values are 'true' and 'false'. | ||
|
||
### `aggregate_prices_total` | ||
|
||
The total number of times the `AggregatePriceProvider` is called to return a price. It randomly selects a source for each pair from its map of price providers. This metric is incremented every time the `AggregatePriceProvider` is called. | ||
|
||
**labels**: | ||
|
||
- `pair`: The pair for which the price was aggregated. | ||
- `source`: The data source from which the price was fetched, e.g. `Bybit`. | ||
- `success`: The result of the fetch operation. Possible values are 'true' and 'false'. | ||
|
||
### `prices_posted_total` | ||
|
||
The total number of txs sent to the on-chain oracle module. This metric is incremented every time the price feeder posts a price to the on-chain oracle module. | ||
|
||
**labels**: | ||
|
||
- `success`: The result of the post operation. Possible values are 'true' and 'false'. |