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
8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ members = [
"src/prom-api",
]
resolver = "3"
name = "btcnode-prom-metrics"

[workspace.package]
edition = "2024"
version = "0.1.0"
description = "The Bitcoin node metrics exporter for Prometheus built on the Rust Bitcoin Community's corepc-client crate."
license-file = "LICENSE"
homepage = "https://github.com/AltaModaTech/btcnode-prom-metrics"
repository = "https://github.com/AltaModaTech/btcnode-prom-metrics"
readme = "README.md"
keywords = ["bitcoin", "prometheus", "metrics"]

[workspace.dependencies]
corepc-client = { version = "0.10", features = ["client-sync"] }
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ The [corepc-client](https://crates.io/crates/corepc-client) crate replaces the p
- [bitcoincore-rpc-json](https://crates.io/crates/) [GitHub](https://github.com/rust-bitcoin/rust-bitcoincore-rpc/tree/master/json)

The Rust Bitcoin Community's public repository for this crate is at [corepc-client](https://github.com/rust-bitcoin/corepc).

## Code structure

This repository's code is separated into:

- _prom-api_ implements the API for Prometheus to call for gathering metrics.
- _btcnode-metrics_ gathers metrics from the Bitcoin node and transforms them into Prometheus format.
8 changes: 7 additions & 1 deletion src/btcnode-metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[package]
name = "btcnode-metrics"
version = "0.1.0"
description.workspace = true
license-file.workspace = true
homepage.workspace = true
repository.workspace = true
readme.workspace = true
keywords.workspace = true
version.workspace = true
edition.workspace = true

[dependencies]
Expand Down
10 changes: 8 additions & 2 deletions src/prom-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
[package]
name = "prom-api"
version = "0.1.0"
description.workspace = true
license-file.workspace = true
homepage.workspace = true
repository.workspace = true
readme.workspace = true
keywords.workspace = true
version.workspace = true
edition.workspace = true

[dependencies]
btcnode-metrics = { path = "../btcnode-metrics" }
btcnode-metrics = { path = "../btcnode-metrics", version = "0.1.0" }
axum.workspace = true
tokio.workspace = true
prometheus.workspace = true
Expand Down