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

Export Prometheus metrics #285

Merged
merged 21 commits into from Jun 12, 2023
Merged

Export Prometheus metrics #285

merged 21 commits into from Jun 12, 2023

Conversation

greenhat
Copy link
Member

@greenhat greenhat commented Jun 5, 2023

Close #53 #266

This PR add exporting Prometheus metrics for various oracle and pool states. It unifies metrics served via REST API /poolHealth, /oracleHealth and Prometheus metrics in metrics.rs. Also, Grafana dashboard is added in /scripts/grafana_dashboard.json.

@coveralls
Copy link

coveralls commented Jun 5, 2023

Pull Request Test Coverage Report for Build 5242029742

  • 4 of 247 (1.62%) changed or added relevant lines in 9 files are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-3.4%) to 55.556%

Changes Missing Coverage Covered Lines Changed/Added Lines %
core/src/oracle_state.rs 0 1 0.0%
core/src/address_util.rs 0 3 0.0%
core/src/box_kind/oracle_box.rs 2 6 33.33%
core/src/oracle_types.rs 0 10 0.0%
core/src/main.rs 0 13 0.0%
core/src/api.rs 0 16 0.0%
core/src/monitor.rs 0 66 0.0%
core/src/metrics.rs 0 130 0.0%
Files with Coverage Reduction New Missed Lines %
core/src/api.rs 1 0%
core/src/main.rs 1 0%
Totals Coverage Status
Change from base Build 5153730120: -3.4%
Covered Lines: 2070
Relevant Lines: 3726

💛 - Coveralls

@greenhat greenhat marked this pull request as ready for review June 12, 2023 09:48
@greenhat greenhat merged commit 66ccb9a into develop Jun 12, 2023
7 checks passed
@greenhat greenhat deleted the i53-prom-monitoring branch June 12, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Monitoring the oracle pool
2 participants