Commit Graph

4 Commits

Author SHA1 Message Date
Mariano eef14f2c23
[1695]Add all protocols to /protocols/stats endpoint (#1737)
* multiple changes

* fix Mayan endpoint

* rename unit-tess

* fix log tag

* fix unit-tests

* add missing env var

* add missing env var

* add all protocols to /protocols/stats endpoint

* fix comments

* fix indentation

* fix indentation

* working on unit-tests

* fix tests

* remove unused code

* remove unused code

* add cache automatic-renew

* filter out unknown and rename generic relayer
2024-10-01 16:37:59 -03:00
Mariano adac3cc203
Add automatic renew mechanism to api cache (#1723)
* automatic cache renew POC

* remove renewInProgress

* add unit-tests

* remove comments

* small change
2024-10-01 11:09:39 -03:00
ftocal 7f60e81b3e
Fallback metrics endpoint (#921)
Add to cache without expiration.
Increase expiration to fetch data from influx to 10 minute. After 10 minute we update the data to influx is the response is success, if the response is not success we return the old data in the cache without expiration.
Add alert when return metrics endpoint using cache that are expired.

Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-12-19 12:24:58 -03:00
ftocal 69885aed0c
Fix intermittent failure in x-chain-activity endpoint (#420)
* Replace start_time and end_time query parameters with fixed ranges at the endpoint of the chain activity
Add InfluxDB tasks for enpdoint chain-activity for each timeSpan
Add cache for chain-activity endpoint

* Code review updates
2023-06-20 10:34:20 -03:00