From 3dd351a135a70d343011d8cfe9651748fc1d878c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nurzhan=20Sak=C3=A9n?= Date: Tue, 16 Jul 2024 15:30:33 +0400 Subject: [PATCH 1/2] refactor: rename `configs` to `defaults`, remove `swarm` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nurzhan Sakén --- .github/labeler.yml | 2 +- .github/workflows/iroha2-dev.yml | 2 +- .github/workflows/iroha2-release.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 2 +- cli/README.md | 8 ++++---- client/examples/tutorial.rs | 2 +- .../tests/ui_fail/cant_filter_singular_query.rs | 2 +- client_cli/pytests/README.md | 2 +- core/benches/blocks/common.rs | 4 ++-- core/benches/validation.rs | 4 ++-- core/test_network/src/lib.rs | 2 +- default_executor/README.md | 2 +- {configs => defaults}/client.template.toml | 0 {configs/swarm => defaults}/client.toml | 0 .../swarm => defaults}/docker-compose.local.yml | 2 +- .../docker-compose.single.yml | 2 +- {configs/swarm => defaults}/docker-compose.yml | 0 {configs/swarm => defaults}/executor.wasm | Bin {configs/swarm => defaults}/genesis.json | 0 {configs => defaults}/peer.template.toml | 0 {configs => defaults}/prometheus.template.yml | 0 hooks/pre-commit.sample | 12 ++++++------ scripts/test_env.py | 2 +- scripts/tests/consistency.sh | 16 ++++++++-------- tools/swarm/src/lib.rs | 10 +++++----- torii/pytests/common/settings.py | 2 +- 27 files changed, 41 insertions(+), 41 deletions(-) rename {configs => defaults}/client.template.toml (100%) rename {configs/swarm => defaults}/client.toml (100%) rename {configs/swarm => defaults}/docker-compose.local.yml (99%) rename {configs/swarm => defaults}/docker-compose.single.yml (99%) rename {configs/swarm => defaults}/docker-compose.yml (100%) rename {configs/swarm => defaults}/executor.wasm (100%) rename {configs/swarm => defaults}/genesis.json (100%) rename {configs => defaults}/peer.template.toml (100%) rename {configs => defaults}/prometheus.template.yml (100%) diff --git a/.github/labeler.yml b/.github/labeler.yml index 8d6adf6742b..ec3caadba28 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -12,4 +12,4 @@ config-changes: - base-branch: 'main' - changed-files: # TODO have templates actually reflect configurations #4288 - - any-glob-to-any-file: 'configs/*.template.toml' + - any-glob-to-any-file: 'defaults/*.template.toml' diff --git a/.github/workflows/iroha2-dev.yml b/.github/workflows/iroha2-dev.yml index 05afb0ded9c..3157933cbb4 100644 --- a/.github/workflows/iroha2-dev.yml +++ b/.github/workflows/iroha2-dev.yml @@ -6,7 +6,7 @@ on: env: CARGO_TERM_COLOR: always - DOCKER_COMPOSE_PATH: configs/swarm + DOCKER_COMPOSE_PATH: defaults jobs: registry: diff --git a/.github/workflows/iroha2-release.yml b/.github/workflows/iroha2-release.yml index b98a73586cd..805b343b986 100644 --- a/.github/workflows/iroha2-release.yml +++ b/.github/workflows/iroha2-release.yml @@ -7,7 +7,7 @@ on: env: CARGO_TERM_COLOR: always - DOCKER_COMPOSE_PATH: configs/swarm + DOCKER_COMPOSE_PATH: defaults jobs: registry: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 361ec66310e..7b146314194 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -199,7 +199,7 @@ Follow these commit guidelines: - To run the source-code based tests, execute [`cargo test`](https://doc.rust-lang.org/cargo/commands/cargo-test.html) in the Iroha root. Note that this is a long process. - To run benchmarks, execute [`cargo bench`](https://doc.rust-lang.org/cargo/commands/cargo-bench.html) from the Iroha root. To help debug benchmark outputs, set the `debug_assertions` environment variable like so: `RUSTFLAGS="--cfg debug_assertions" cargo bench`. - If you are working on a particular component, be mindful that when you run `cargo test` in a [workspace](https://doc.rust-lang.org/cargo/reference/workspaces.html), it will only run the tests for that workspace, which usually doesn't include any [integration tests](https://www.testingxperts.com/blog/what-is-integration-testing). -- If you want to test your changes on a minimal network, the provided [`docker-compose.yml`](configs/swarm/docker-compose.yml) creates a network of 4 Iroha peers in docker containers that can be used to test consensus and asset propagation-related logic. We recommend interacting with that network using either [`iroha-python`](https://github.com/hyperledger/iroha-python), or the included Iroha client CLI. +- If you want to test your changes on a minimal network, the provided [`docker-compose.yml`](defaults/docker-compose.yml) creates a network of 4 Iroha peers in docker containers that can be used to test consensus and asset propagation-related logic. We recommend interacting with that network using either [`iroha-python`](https://github.com/hyperledger/iroha-python), or the included Iroha client CLI. - Do not remove failing tests. Even tests that are ignored will be run in our pipeline eventually. - If possible, please benchmark your code both before and after making your changes, as a significant performance regression can break existing users' installations. diff --git a/README.md b/README.md index 11d8cfb1c72..adec87131f0 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ docker compose up With the `docker-compose` instance running, use [Iroha Client CLI](./client_cli/README.md): ```bash -cargo run --bin iroha -- --config ./configs/swarm/client.toml +cargo run --bin iroha -- --config ./defaults/client.toml ``` ## Integration diff --git a/cli/README.md b/cli/README.md index a75c4f773a4..25e4d44793e 100644 --- a/cli/README.md +++ b/cli/README.md @@ -80,7 +80,7 @@ You may deploy Iroha as a [native binary](#native-binary) or by using [Docker](# ### Native binary - + 1. Prepare a deployment environment. @@ -89,8 +89,8 @@ You may deploy Iroha as a [native binary](#native-binary) or by using [Docker](# ```bash # FIXME # cp ./target/release/irohad - # cp ./configs/peer/config.json deploy - # cp ./configs/peer/genesis.json deploy + # cp ./defaults/peer/config.json deploy + # cp ./defaults/peer/genesis.json deploy ``` 2. Make the necessary edits to `config.json` and `genesis.json`, such as: @@ -110,7 +110,7 @@ You may deploy Iroha as a [native binary](#native-binary) or by using [Docker](# ### Docker -We provide a sample configuration for Docker in [`docker-compose.yml`](../configs/swarm/docker-compose.yml). We highly recommend that you adjust the `config.json` to include a set of new key pairs. +We provide a sample configuration for Docker in [`docker-compose.yml`](../defaults/docker-compose.yml). We highly recommend that you adjust the `config.json` to include a set of new key pairs. [Generate the keys](#generating-keys) and put them into `services.*.environment` in `docker-compose.yml`. Don't forget to update the public keys of `TRUSTED_PEERS`. diff --git a/client/examples/tutorial.rs b/client/examples/tutorial.rs index 4718137ab0c..106cf0037b1 100644 --- a/client/examples/tutorial.rs +++ b/client/examples/tutorial.rs @@ -9,7 +9,7 @@ use iroha_primitives::numeric::Numeric; fn main() { // #region rust_config_load - let config = Config::load("../configs/swarm/client.toml").unwrap(); + let config = Config::load("../defaults/client.toml").unwrap(); // #endregion rust_config_load // Your code goes here… diff --git a/client/tests/ui_fail/cant_filter_singular_query.rs b/client/tests/ui_fail/cant_filter_singular_query.rs index 4bb6a337574..a668383aa11 100644 --- a/client/tests/ui_fail/cant_filter_singular_query.rs +++ b/client/tests/ui_fail/cant_filter_singular_query.rs @@ -5,7 +5,7 @@ use iroha::{ }; fn main() { - let config = Config::load("../configs/swarm/client.toml").unwrap(); + let config = Config::load("../defaults/client.toml").unwrap(); let client = Client::new(config); diff --git a/client_cli/pytests/README.md b/client_cli/pytests/README.md index 4fc3cf60adb..86586c3fcb7 100644 --- a/client_cli/pytests/README.md +++ b/client_cli/pytests/README.md @@ -112,7 +112,7 @@ To do so, perform the following steps: # Create a new directory: mkdir test # Copy the files: - cp configs/swarm/client.toml test + cp defaults/client.toml test cp target/debug/iroha test ``` diff --git a/core/benches/blocks/common.rs b/core/benches/blocks/common.rs index c22886428f8..92f1416a558 100644 --- a/core/benches/blocks/common.rs +++ b/core/benches/blocks/common.rs @@ -201,8 +201,8 @@ pub fn build_state(rt: &tokio::runtime::Handle, account_id: &AccountId) -> State state_block.world.parameters.executor.memory = NonZeroU64::MAX; let mut state_transaction = state_block.transaction(); - let path_to_executor = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")) - .join("../configs/swarm/executor.wasm"); + let path_to_executor = + std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../defaults/executor.wasm"); let wasm = std::fs::read(&path_to_executor) .unwrap_or_else(|_| panic!("Failed to read file: {}", path_to_executor.display())); let executor = Executor::new(WasmSmartContract::from_compiled(wasm)); diff --git a/core/benches/validation.rs b/core/benches/validation.rs index ed017e2dfe1..9881be3789b 100644 --- a/core/benches/validation.rs +++ b/core/benches/validation.rs @@ -57,8 +57,8 @@ fn build_test_and_transient_state() -> State { { let mut state_block = state.block(); let mut state_transaction = state_block.transaction(); - let path_to_executor = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")) - .join("../configs/swarm/executor.wasm"); + let path_to_executor = + std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../defaults/executor.wasm"); let wasm = std::fs::read(&path_to_executor) .unwrap_or_else(|_| panic!("Failed to read file: {}", path_to_executor.display())); let executor = Executor::new(WasmSmartContract::from_compiled(wasm)); diff --git a/core/test_network/src/lib.rs b/core/test_network/src/lib.rs index 0259681058a..b541a31e14f 100644 --- a/core/test_network/src/lib.rs +++ b/core/test_network/src/lib.rs @@ -95,7 +95,7 @@ impl TestGenesis for GenesisBlock { // TODO: Fix this somehow. Probably we need to make `kagami` a library (#3253). let manifest_dir = Path::new(env!("CARGO_MANIFEST_DIR")); let mut genesis = - RawGenesisTransaction::from_path(manifest_dir.join("../../configs/swarm/genesis.json")) + RawGenesisTransaction::from_path(manifest_dir.join("../../defaults/genesis.json")) .expect("Failed to deserialize genesis block from file"); let rose_definition_id = "rose#wonderland".parse::().unwrap(); diff --git a/default_executor/README.md b/default_executor/README.md index 45cff2f9d1d..c8ca6099267 100644 --- a/default_executor/README.md +++ b/default_executor/README.md @@ -4,5 +4,5 @@ Use the [Wasm Builder CLI](../tools/wasm_builder_cli) in order to build it: ```bash cargo run --bin iroha_wasm_builder -- \ - build ./default_executor --optimize --out-file ./configs/swarm/executor.wasm + build ./default_executor --optimize --out-file ./defaults/executor.wasm ``` diff --git a/configs/client.template.toml b/defaults/client.template.toml similarity index 100% rename from configs/client.template.toml rename to defaults/client.template.toml diff --git a/configs/swarm/client.toml b/defaults/client.toml similarity index 100% rename from configs/swarm/client.toml rename to defaults/client.toml diff --git a/configs/swarm/docker-compose.local.yml b/defaults/docker-compose.local.yml similarity index 99% rename from configs/swarm/docker-compose.local.yml rename to defaults/docker-compose.local.yml index d053f4aec28..6d37702b275 100644 --- a/configs/swarm/docker-compose.local.yml +++ b/defaults/docker-compose.local.yml @@ -5,7 +5,7 @@ services: irohad0: image: hyperledger/iroha:local - build: ../.. + build: .. pull_policy: never environment: CHAIN: 00000000-0000-0000-0000-000000000000 diff --git a/configs/swarm/docker-compose.single.yml b/defaults/docker-compose.single.yml similarity index 99% rename from configs/swarm/docker-compose.single.yml rename to defaults/docker-compose.single.yml index 1f6598eee7f..896ba485ec0 100644 --- a/configs/swarm/docker-compose.single.yml +++ b/defaults/docker-compose.single.yml @@ -5,7 +5,7 @@ services: irohad0: image: hyperledger/iroha:local - build: ../.. + build: .. pull_policy: never environment: CHAIN: 00000000-0000-0000-0000-000000000000 diff --git a/configs/swarm/docker-compose.yml b/defaults/docker-compose.yml similarity index 100% rename from configs/swarm/docker-compose.yml rename to defaults/docker-compose.yml diff --git a/configs/swarm/executor.wasm b/defaults/executor.wasm similarity index 100% rename from configs/swarm/executor.wasm rename to defaults/executor.wasm diff --git a/configs/swarm/genesis.json b/defaults/genesis.json similarity index 100% rename from configs/swarm/genesis.json rename to defaults/genesis.json diff --git a/configs/peer.template.toml b/defaults/peer.template.toml similarity index 100% rename from configs/peer.template.toml rename to defaults/peer.template.toml diff --git a/configs/prometheus.template.yml b/defaults/prometheus.template.yml similarity index 100% rename from configs/prometheus.template.yml rename to defaults/prometheus.template.yml diff --git a/hooks/pre-commit.sample b/hooks/pre-commit.sample index 67effb47912..4de7a10321d 100755 --- a/hooks/pre-commit.sample +++ b/hooks/pre-commit.sample @@ -10,16 +10,16 @@ cd ./client/tests/integration/smartcontracts cargo fmt --all -- --check cd - # update the default executor -cargo run --release --bin iroha_wasm_builder -- build ./default_executor --optimize --out-file ./configs/swarm/executor.wasm +cargo run --release --bin iroha_wasm_builder -- build ./default_executor --optimize --out-file ./defaults/executor.wasm # update the default genesis, assuming the transaction authority is `test_samples::SAMPLE_GENESIS_ACCOUNT_ID` -cargo run --release --bin kagami -- genesis generate --executor-path-in-genesis ./executor.wasm --genesis-public-key ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4 > ./configs/swarm/genesis.json +cargo run --release --bin kagami -- genesis generate --executor-path-in-genesis ./executor.wasm --genesis-public-key ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4 > ./defaults/genesis.json # update schema cargo run --release --bin kagami -- schema > ./docs/source/references/schema.json # update docker compose files -cargo run --release --bin iroha_swarm -- -p 1 -s Iroha -H -c ./configs/swarm -i hyperledger/iroha:local -b . -o ./configs/swarm/docker-compose.single.yml -F -cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./configs/swarm -i hyperledger/iroha:local -b . -o ./configs/swarm/docker-compose.local.yml -F -cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./configs/swarm -i hyperledger/iroha:dev -o ./configs/swarm/docker-compose.yml -F +cargo run --release --bin iroha_swarm -- -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.single.yml -F +cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b . -o ./defaults/docker-compose.local.yml -F +cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev -o ./defaults/docker-compose.yml -F # lints cargo lints clippy --workspace --benches --tests --examples --all-features # stage updates -git add ./configs/swarm/executor.wasm ./configs/swarm/genesis.json ./docs/source/references/schema.json ./configs/swarm/docker-compose.single.yml ./configs/swarm/docker-compose.local.yml ./configs/swarm/docker-compose.yml +git add ./defaults/executor.wasm ./defaults/genesis.json ./docs/source/references/schema.json ./defaults/docker-compose.single.yml ./defaults/docker-compose.local.yml ./defaults/docker-compose.yml diff --git a/scripts/test_env.py b/scripts/test_env.py index 03cef3c6ce3..9ab3270135e 100755 --- a/scripts/test_env.py +++ b/scripts/test_env.py @@ -19,7 +19,7 @@ import urllib.request import tomli_w -SWARM_CONFIGS_DIRECTORY = pathlib.Path("configs/swarm") +SWARM_CONFIGS_DIRECTORY = pathlib.Path("defaults") SHARED_CONFIG_FILE_NAME = "config.base.toml" class Network: diff --git a/scripts/tests/consistency.sh b/scripts/tests/consistency.sh index 0331a16a7e1..133a6d1ddae 100755 --- a/scripts/tests/consistency.sh +++ b/scripts/tests/consistency.sh @@ -3,8 +3,8 @@ set -e case $1 in "genesis") - cargo run --release --bin kagami -- genesis generate --executor-path-in-genesis ./executor.wasm --genesis-public-key ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4 | diff - configs/swarm/genesis.json || { - echo 'Please re-generate the default genesis with `cargo run --release --bin kagami -- genesis --executor-path-in-genesis ./executor.wasm --genesis-public-key ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4 > ./configs/swarm/genesis.json`' + cargo run --release --bin kagami -- genesis generate --executor-path-in-genesis ./executor.wasm --genesis-public-key ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4 | diff - defaults/genesis.json || { + echo 'Please re-generate the default genesis with `cargo run --release --bin kagami -- genesis --executor-path-in-genesis ./executor.wasm --genesis-public-key ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4 > ./defaults/genesis.json`' echo 'The assumption here is that the authority of the default genesis transaction is `test_samples::SAMPLE_GENESIS_ACCOUNT_ID`' exit 1 };; @@ -25,19 +25,19 @@ case $1 in } command_base_for_single() { - echo "cargo run --release --bin iroha_swarm -- -p 1 -s Iroha -H -c ./configs/swarm -i hyperledger/iroha:local -b ." + echo "cargo run --release --bin iroha_swarm -- -p 1 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ." } command_base_for_multiple_local() { - echo "cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./configs/swarm -i hyperledger/iroha:local -b ." + echo "cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:local -b ." } command_base_for_default() { - echo "cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./configs/swarm -i hyperledger/iroha:dev" + echo "cargo run --release --bin iroha_swarm -- -p 4 -s Iroha -H -c ./defaults -i hyperledger/iroha:dev" } - do_check "$(command_base_for_single)" "configs/swarm/docker-compose.single.yml" - do_check "$(command_base_for_multiple_local)" "configs/swarm/docker-compose.local.yml" - do_check "$(command_base_for_default)" "configs/swarm/docker-compose.yml" + do_check "$(command_base_for_single)" "defaults/docker-compose.single.yml" + do_check "$(command_base_for_multiple_local)" "defaults/docker-compose.local.yml" + do_check "$(command_base_for_default)" "defaults/docker-compose.yml" esac diff --git a/tools/swarm/src/lib.rs b/tools/swarm/src/lib.rs index 45abe6a68c7..e76b48dcb52 100644 --- a/tools/swarm/src/lib.rs +++ b/tools/swarm/src/lib.rs @@ -144,8 +144,8 @@ mod tests { use crate::Swarm; const IMAGE: &str = "hyperledger/iroha:dev"; - const PEER_CONFIG_PATH: &str = "./configs/swarm"; - const TARGET_PATH: &str = "./configs/swarm/docker-compose.yml"; + const PEER_CONFIG_PATH: &str = "./defaults"; + const TARGET_PATH: &str = "./defaults/docker-compose.yml"; fn build_as_string( count: std::num::NonZeroU16, @@ -180,7 +180,7 @@ mod tests { services: irohad0: image: hyperledger/iroha:dev - build: ../.. + build: .. pull_policy: never environment: CHAIN: 00000000-0000-0000-0000-000000000000 @@ -232,7 +232,7 @@ mod tests { services: irohad0: image: hyperledger/iroha:dev - build: ../.. + build: .. pull_policy: build environment: CHAIN: 00000000-0000-0000-0000-000000000000 @@ -283,7 +283,7 @@ mod tests { services: irohad0: image: hyperledger/iroha:dev - build: ../.. + build: .. pull_policy: build environment: CHAIN: 00000000-0000-0000-0000-000000000000 diff --git a/torii/pytests/common/settings.py b/torii/pytests/common/settings.py index ed56a58eb51..4da423df197 100644 --- a/torii/pytests/common/settings.py +++ b/torii/pytests/common/settings.py @@ -7,7 +7,7 @@ BASE_DIR = os.path.dirname( os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) ) -CONFIG_DIR = os.path.join(BASE_DIR, "configs/swarm/client.toml") +CONFIG_DIR = os.path.join(BASE_DIR, "defaults/client.toml") with open(CONFIG_DIR, "r") as file: config = toml.load(file) From 4391d5b224474fab9e605fd9295eecc7192976b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nurzhan=20Sak=C3=A9n?= Date: Wed, 24 Jul 2024 10:30:51 +0400 Subject: [PATCH 2/2] docs: move config templates to `docs/source/references` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nurzhan Sakén --- .github/labeler.yml | 4 +++- README.md | 2 +- {defaults => docs/source/references}/client.template.toml | 0 {defaults => docs/source/references}/peer.template.toml | 0 {defaults => docs/source/references}/prometheus.template.yml | 0 5 files changed, 4 insertions(+), 2 deletions(-) rename {defaults => docs/source/references}/client.template.toml (100%) rename {defaults => docs/source/references}/peer.template.toml (100%) rename {defaults => docs/source/references}/prometheus.template.yml (100%) diff --git a/.github/labeler.yml b/.github/labeler.yml index ec3caadba28..e5b190e9e61 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -12,4 +12,6 @@ config-changes: - base-branch: 'main' - changed-files: # TODO have templates actually reflect configurations #4288 - - any-glob-to-any-file: 'defaults/*.template.toml' + - any-glob-to-any-file: + - 'defaults/*' + - 'docs/source/references/*.template.*' \ No newline at end of file diff --git a/README.md b/README.md index adec87131f0..aa2da8a08f9 100644 --- a/README.md +++ b/README.md @@ -199,7 +199,7 @@ The details of the `Health` endpoint can be found in the [API Reference > Torii Iroha can produce both JSON-formatted as well as `prometheus`-readable metrics at the `status` and `metrics` endpoints respectively. -The [`prometheus`](https://prometheus.io/docs/introduction/overview/) monitoring system is the de-factor standard for monitoring long-running services such as an Iroha peer. In order to get started, [install `prometheus`](https://prometheus.io/docs/introduction/first_steps/) and use `configs/prometheus.template.yml` for configuration. +The [`prometheus`](https://prometheus.io/docs/introduction/overview/) monitoring system is the de-factor standard for monitoring long-running services such as an Iroha peer. In order to get started, [install `prometheus`](https://prometheus.io/docs/introduction/first_steps/) and use [the configuration template](docs/source/references/prometheus.template.yml). ### Storage diff --git a/defaults/client.template.toml b/docs/source/references/client.template.toml similarity index 100% rename from defaults/client.template.toml rename to docs/source/references/client.template.toml diff --git a/defaults/peer.template.toml b/docs/source/references/peer.template.toml similarity index 100% rename from defaults/peer.template.toml rename to docs/source/references/peer.template.toml diff --git a/defaults/prometheus.template.yml b/docs/source/references/prometheus.template.yml similarity index 100% rename from defaults/prometheus.template.yml rename to docs/source/references/prometheus.template.yml