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

Run prometheus task when refiner-app starts #185

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alexander-borodulya
Copy link
Contributor

Initialize Prometheus metrics when the refiner-app starts

@alexander-borodulya alexander-borodulya marked this pull request as ready for review December 4, 2024 20:43
use engine_standalone_storage::sync::types::TransactionKindTag;
use lazy_static::lazy_static;
use prometheus::{
self, labels, opts, register_int_counter, register_int_gauge, IntCounter, IntGauge, Opts,
};

lazy_static! {
pub static ref PROCESS_ID: IntGauge = gauge(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be a conflict with the same metric from the borealis-metrics crate?

@alexander-borodulya alexander-borodulya marked this pull request as draft December 5, 2024 15:27
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.

2 participants