Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error to open failures.json when prometeus metrics are being preapred #578

Closed
akolotov opened this issue Jun 5, 2021 · 0 comments · Fixed by #586
Closed

Error to open failures.json when prometeus metrics are being preapred #578

akolotov opened this issue Jun 5, 2021 · 0 comments · Fixed by #586
Labels
bug Something isn't working monitor related to TokenBridge monitor

Comments

@akolotov
Copy link
Collaborator

akolotov commented Jun 5, 2021

The following exception appears on the terminal when the metrics for the ERC20-to-native bridge are being collecte:

2021-06-05T10:32:13.795Z (+198ms) [checkWorker2] Done x2
2021-06-05T10:32:15.233Z (+0ms) [metricsWorker] calling getPrometheusMetrics()
readFlle { Error: ENOENT: no such file or directory, open './responses/xdai/failures.json'
    at Object.openSync (fs.js:443:3)
    at Object.readFileSync (fs.js:343:35)
    at readFile (/mono/monitor/utils/file.js:6:24)
    at getPrometheusMetrics (/mono/monitor/prometheusMetrics.js:112:23)
    at metricsWorker (/mono/monitor/metricsWorker.js:12:27)
    at Object.<anonymous> (/mono/monitor/metricsWorker.js:20:1)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: './responses/xdai/failures.json' }
2021-06-05T10:32:15.249Z (+16ms) [metricsWorker] Done
Done in 9.54s.
@akolotov akolotov added bug Something isn't working monitor related to TokenBridge monitor labels Jun 5, 2021
akolotov added a commit that referenced this issue Jul 10, 2021
This merge contains the following set of changes:
  * [Monitor, Improvement] Add statistics about used AMB information requests (#577)
  * [ALM, Improvement] Add safe-execute button in ALM (#580), closes #573, closes #551
  * [Oracle, Improvement] Improve confirm-relay feature (#582), closes #569
  * [Monitor, Fix] Prune print of long error messages about missing file (#579), closes #578
  * [Oracle, Fix] Use safe approach for eth_getLogs requests (#581)
  * [Oracle, Fix] Fix logging in gas price service (#583), closes #552
  * [Oracle, Fix] Fix oracle error patterns and oracle e2e tests (#585)
  * [Common, Other] Fix dependencies versions and update example.yml (#566)
  * [Common, Other] Upload services logs in e2e and ultimate tests (#568)
  * [Oracle, Other] added example of emergency shutdown controller contract (#572)
  * [Oracle, Other] Refactor oracle configuration (#584)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working monitor related to TokenBridge monitor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant