Skip to content

Commit fa3cbe9

Browse files
feat(aggregation-mode): scrap metrics with prometheus and visualize via Grafana dashboard (#2218)
1 parent 218c172 commit fa3cbe9

File tree

16 files changed

+968
-17
lines changed

16 files changed

+968
-17
lines changed

aggregation_mode/Cargo.lock

Lines changed: 144 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aggregation_mode/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ aligned-sdk = { path = "../crates/sdk/" }
1616
db = { path = "./db" }
1717
sp1-sdk = "5.0.0"
1818
risc0-zkvm = { version = "3.0.3" }
19+
prometheus = { version = "0.13.4", features = ["process"] }
1920

2021
[profile.release]
2122
opt-level = 3

aggregation_mode/gateway/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ edition = "2021"
77
serde = { workspace = true }
88
serde_json = { workspace = true }
99
serde_yaml = { workspace = true }
10+
prometheus = { workspace = true }
1011
agg_mode_sdk = { path = "../sdk"}
1112
aligned-sdk = { workspace = true }
1213
sp1-sdk = { workspace = true }
@@ -16,6 +17,7 @@ tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
1617
bincode = "1.3.3"
1718
actix-web = "4"
1819
actix-multipart = "0.7.2"
20+
actix-web-prometheus = "0.1.2"
1921
alloy = { workspace = true }
2022
tokio = { version = "1", features = ["time"]}
2123
# TODO: enable tls

aggregation_mode/gateway/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub struct Config {
99
pub db_connection_urls: Vec<String>,
1010
pub network: String,
1111
pub max_daily_proofs_per_user: i64,
12+
pub gateway_metrics_port: u16,
1213
}
1314

1415
impl Config {

0 commit comments

Comments
 (0)