Prometheus crate (#883)

* feat: introduce `cdk-prometheus` crate with Prometheus server and CDK-specific metrics support
This commit is contained in:
asmo
2025-09-09 14:26:03 +02:00
committed by GitHub
parent c94979a357
commit 75a3e6d2c7
39 changed files with 4504 additions and 361 deletions

View File

@@ -29,7 +29,7 @@ cdk-sqlite = { workspace = true }
cdk-redb = { workspace = true }
cdk-fake-wallet = { workspace = true }
cdk-common = { workspace = true, features = ["mint", "wallet", "auth"] }
cdk-mintd = { workspace = true, features = ["cln", "lnd", "fakewallet", "grpc-processor", "auth", "lnbits", "management-rpc", "sqlite", "postgres", "ldk-node"] }
cdk-mintd = { workspace = true, features = ["cln", "lnd", "fakewallet", "grpc-processor", "auth", "lnbits", "management-rpc", "sqlite", "postgres", "ldk-node", "prometheus"] }
futures = { workspace = true, default-features = false, features = [
"executor",
] }

View File

@@ -286,6 +286,7 @@ fn create_ldk_settings(
grpc_processor: None,
database: cdk_mintd::config::Database::default(),
mint_management_rpc: None,
prometheus: None,
auth: None,
}
}

View File

@@ -219,6 +219,7 @@ pub fn create_fake_wallet_settings(
},
mint_management_rpc: None,
auth: None,
prometheus: Some(Default::default()),
}
}
@@ -265,6 +266,7 @@ pub fn create_cln_settings(
database: cdk_mintd::config::Database::default(),
mint_management_rpc: None,
auth: None,
prometheus: Some(Default::default()),
}
}
@@ -310,5 +312,6 @@ pub fn create_lnd_settings(
database: cdk_mintd::config::Database::default(),
mint_management_rpc: None,
auth: None,
prometheus: Some(Default::default()),
}
}