mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-18 21:25:09 +01:00
Prometheus crate (#883)
* feat: introduce `cdk-prometheus` crate with Prometheus server and CDK-specific metrics support
This commit is contained in:
@@ -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",
|
||||
] }
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user