Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/alert_definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use apollo_l1_provider::metrics::{
L1_MESSAGE_SCRAPER_REORG_DETECTED,
};
use apollo_mempool_p2p::metrics::MEMPOOL_P2P_NUM_CONNECTED_PEERS;
use apollo_metrics::MetricCommon;
use apollo_storage::metrics::{
BATCHER_STORAGE_OPEN_READ_TRANSACTIONS,
CLASS_MANAGER_STORAGE_OPEN_READ_TRANSACTIONS,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use apollo_consensus::metrics::{CONSENSUS_BLOCK_NUMBER, CONSENSUS_ROUND_ABOVE_ZERO};
use apollo_consensus_manager::metrics::CONSENSUS_NUM_CONNECTED_PEERS;
use apollo_consensus_orchestrator::metrics::CENDE_WRITE_BLOB_FAILURE;
use apollo_metrics::MetricCommon;

use crate::alert_definitions::BLOCK_TIME_SEC;
use crate::alerts::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::time::Duration;
use apollo_batcher::metrics::BATCHED_TRANSACTIONS;
use apollo_consensus::metrics::{CONSENSUS_BLOCK_NUMBER, CONSENSUS_ROUND};
use apollo_consensus_manager::metrics::CONSENSUS_NUM_CONNECTED_PEERS;
use apollo_metrics::MetricCommon;

use crate::alert_definitions::BLOCK_TIME_SEC;
use crate::alerts::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use apollo_l1_gas_price::metrics::{
L1_GAS_PRICE_PROVIDER_INSUFFICIENT_HISTORY,
L1_GAS_PRICE_SCRAPER_SUCCESS_COUNT,
};
use apollo_metrics::MetricCommon;

use crate::alerts::{
Alert,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/alert_scenarios/l1_handlers.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use apollo_l1_provider::metrics::L1_MESSAGE_SCRAPER_SUCCESS_COUNT;
use apollo_metrics::MetricCommon;

use crate::alerts::{
Alert,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use apollo_mempool::metrics::{
MEMPOOL_POOL_SIZE,
MEMPOOL_TRANSACTIONS_DROPPED,
};
use apollo_metrics::MetricCommon;

use crate::alerts::{
Alert,
Expand Down
2 changes: 2 additions & 0 deletions crates/apollo_dashboard/src/alert_scenarios/preconfirmed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ fn get_preconfirmed_block_not_written(
)
}

use apollo_metrics::MetricCommon;

pub(crate) fn get_preconfirmed_block_not_written_vec() -> Vec<Alert> {
vec![
get_preconfirmed_block_not_written(
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/alert_scenarios/sync_halt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::time::Duration;

use apollo_metrics::MetricCommon;
use apollo_state_sync_metrics::metrics::{
CENTRAL_SYNC_CENTRAL_BLOCK_MARKER,
STATE_SYNC_CLASS_MANAGER_MARKER,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/alert_scenarios/tps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use apollo_gateway::metrics::{
};
use apollo_http_server::metrics::ADDED_TRANSACTIONS_SUCCESS;
use apollo_mempool::metrics::MEMPOOL_TRANSACTIONS_RECEIVED;
use apollo_metrics::MetricCommon;

use crate::alerts::{
Alert,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use apollo_batcher::metrics::NUM_TRANSACTION_IN_BLOCK;
use apollo_http_server::metrics::HTTP_SERVER_ADD_TX_LATENCY;
use apollo_mempool_p2p::metrics::MEMPOOL_P2P_NUM_CONNECTED_PEERS;
use apollo_metrics::MetricCommon;

use crate::alerts::{
Alert,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use apollo_http_server::metrics::{
ADDED_TRANSACTIONS_TOTAL,
};
use apollo_mempool::metrics::{MEMPOOL_TRANSACTIONS_DROPPED, MEMPOOL_TRANSACTIONS_RECEIVED};
use apollo_metrics::MetricCommon;

use crate::alerts::{
Alert,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/dashboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use apollo_infra::metrics::{
use apollo_infra::requests::LABEL_NAME_REQUEST_VARIANT;
use apollo_metrics::metrics::{
LabeledMetricHistogram,
MetricCommon,
MetricCounter,
MetricGauge,
MetricHistogram,
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo_dashboard/src/dashboard_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use apollo_infra_utils::test_utils::assert_json_eq;
use apollo_metrics::metrics::{MetricCounter, MetricScope};
use apollo_metrics::metrics::{MetricCommon, MetricCounter, MetricScope};

use crate::alerts::{
Alert,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/batcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use apollo_consensus_orchestrator::metrics::{
CONSENSUS_NUM_BATCHES_IN_PROPOSAL,
CONSENSUS_NUM_TXS_IN_PROPOSAL,
};
use apollo_metrics::MetricCommon;

use crate::dashboard::{Panel, PanelType, Row, Unit};

Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/blockifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use apollo_batcher::metrics::{
PROVING_GAS_IN_LAST_BLOCK,
SIERRA_GAS_IN_LAST_BLOCK,
};
use apollo_metrics::MetricCommon;
use blockifier::metrics::{
BLOCKIFIER_METRIC_RATE_DURATION,
CALLS_RUNNING_NATIVE,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ use apollo_consensus_orchestrator::metrics::{
LABEL_CENDE_FAILURE_REASON,
LABEL_VALIDATE_PROPOSAL_FAILURE_REASON,
};
use apollo_metrics::MetricCommon;
use apollo_network::network_manager::metrics::{
LABEL_NAME_BROADCAST_DROP_REASON,
LABEL_NAME_EVENT_TYPE,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use apollo_gateway::metrics::{
LABEL_NAME_SOURCE,
LABEL_NAME_TX_TYPE as GATEWAY_LABEL_NAME_TX_TYPE,
};
use apollo_metrics::MetricCommon;

use crate::dashboard::{Panel, PanelType, Row, Unit};

Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/http_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use apollo_http_server::metrics::{
ADDED_TRANSACTIONS_TOTAL,
HTTP_SERVER_ADD_TX_LATENCY,
};
use apollo_metrics::MetricCommon;

use crate::dashboard::{Panel, PanelType, Row, Unit};

Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/l1_gas_price.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use apollo_l1_gas_price::metrics::{
L1_GAS_PRICE_SCRAPER_SUCCESS_COUNT,
};
use apollo_l1_gas_price_types::DEFAULT_ETH_TO_FRI_RATE;
use apollo_metrics::MetricCommon;

use crate::dashboard::{get_time_since_last_increase_expr, Panel, PanelType, Row, Unit};

Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/l1_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use apollo_l1_provider::metrics::{
L1_MESSAGE_SCRAPER_REORG_DETECTED,
L1_MESSAGE_SCRAPER_SUCCESS_COUNT,
};
use apollo_metrics::MetricCommon;

use crate::dashboard::{get_time_since_last_increase_expr, Panel, PanelType, Row, Unit};

Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use apollo_mempool::metrics::{
TRANSACTION_TIME_SPENT_UNTIL_BATCHED,
TRANSACTION_TIME_SPENT_UNTIL_COMMITTED,
};
use apollo_metrics::MetricCommon;

use crate::dashboard::{Panel, PanelType, Row, Unit};

Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/mempool_p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use apollo_mempool_p2p::metrics::{
MEMPOOL_P2P_NUM_RECEIVED_MESSAGES,
MEMPOOL_P2P_NUM_SENT_MESSAGES,
};
use apollo_metrics::MetricCommon;
use apollo_network::network_manager::metrics::{
LABEL_NAME_BROADCAST_DROP_REASON,
LABEL_NAME_EVENT_TYPE,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/sierra_compiler.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use apollo_class_manager::metrics::{CLASS_SIZES, N_CLASSES};
use apollo_compile_to_casm::metrics::COMPILATION_DURATION;
use apollo_metrics::MetricCommon;

use crate::dashboard::{Panel, PanelType, Row, Unit};

Expand Down
1 change: 1 addition & 0 deletions crates/apollo_dashboard/src/panels/state_sync.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use apollo_metrics::MetricCommon;
use apollo_state_sync_metrics::metrics::{
CENTRAL_SYNC_CENTRAL_BLOCK_MARKER,
P2P_SYNC_NUM_ACTIVE_INBOUND_SESSIONS,
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ apollo_l1_provider_config.workspace = true
apollo_l1_scraper_config.workspace = true
apollo_mempool_config.workspace = true
apollo_mempool_p2p_config.workspace = true
apollo_metrics.workspace = true
apollo_monitoring_endpoint = { workspace = true, features = ["testing"] }
apollo_monitoring_endpoint_config.workspace = true
apollo_network = { workspace = true, features = ["testing"] }
Expand Down
1 change: 1 addition & 0 deletions crates/apollo_integration_tests/src/monitoring_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use apollo_batcher::metrics::{REVERTED_TRANSACTIONS, STORAGE_HEIGHT};
use apollo_consensus::metrics::CONSENSUS_DECISIONS_REACHED_BY_CONSENSUS;
use apollo_infra_utils::run_until::run_until;
use apollo_infra_utils::tracing::{CustomLogger, TraceLevel};
use apollo_metrics::metrics::MetricCommon;
use apollo_monitoring_endpoint::test_utils::MonitoringClient;
use apollo_state_sync_metrics::metrics::{
STATE_SYNC_BODY_MARKER,
Expand Down
2 changes: 2 additions & 0 deletions crates/apollo_metrics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ pub mod metrics;

// Its being exported here to be used in define_metrics macro.
pub use paste;

pub use crate::metrics::MetricCommon;
Loading
Loading