Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metrics all in one #943

Merged

Conversation

kuvaldini
Copy link
Contributor

@kuvaldini kuvaldini commented Apr 8, 2021

[Metrics] #837 #883 #919 #896 #835

Integrate kOnBlock to storage_impl.cpp
Closes #837 Add total number of blocks
Closes #883 Number of domains
Closes #919 Number of signatures in the last block
Closes #896 Measure total number of transactions
Closes #835 Total nodes/peers updated when kOnBlock
Should close #835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not async

irohad/ametsuchi/impl/storage_impl.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/main/irohad.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/main/application.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/ametsuchi/CMakeLists.txt Outdated Show resolved Hide resolved
irohad/maintenance/metrics.hpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.hpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.hpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/ametsuchi/impl/storage_impl.cpp Outdated Show resolved Hide resolved
irohad/ametsuchi/CMakeLists.txt Outdated Show resolved Hide resolved
CMakeLists.txt Outdated Show resolved Hide resolved
irohad/ametsuchi/impl/postgres_wsv_query.cpp Outdated Show resolved Hide resolved
irohad/ametsuchi/wsv_query.hpp Outdated Show resolved Hide resolved
irohad/maintenance/CMakeLists.txt Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
irohad/maintenance/metrics.cpp Outdated Show resolved Hide resolved
shared_model/backend/protobuf/impl/block.cpp Outdated Show resolved Hide resolved
@kuvaldini kuvaldini force-pushed the metrics-all-in-one branch 3 times, most recently from ea62d16 to e77d9d9 Compare April 29, 2021 12:15
irohad/maintenance/metrics.cpp Show resolved Hide resolved
@kuvaldini kuvaldini force-pushed the metrics-all-in-one branch 4 times, most recently from b4d68b4 to 7737ab3 Compare May 1, 2021 08:56
@LiraLemur LiraLemur closed this May 4, 2021
@LiraLemur LiraLemur deleted the branch hyperledger-iroha:support/1.2.x May 4, 2021 12:49
std::shared_ptr<const shared_model::interface::Block> block_ptr =
std::move(maybe_block.get());
notifier_.get_subscriber().on_next(block_ptr);
getSubscription()->notify(EventTypes::kOnBlock, block_ptr);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to parametrize StorageImpl with std::function<void(Block)> so that the class and tests do not depend on subscription engine.

…ha#919 hyperledger-iroha#896 hyperledger-iroha#835

Integrate kOnBlock to storage_impl.cpp
Closes hyperledger-iroha#837 Add total number of blocks
Closes hyperledger-iroha#883 Number of domains
Closes hyperledger-iroha#919 Number of signatures in the last block
Closes hyperledger-iroha#896 Measure total number of transactions
Closes hyperledger-iroha#835 Total nodes/peers updated when kOnBlock
Should close hyperledger-iroha#835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with
GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not
async
Closes hyperledger-iroha#966 Disable prometheus-cpp self-metrics

Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
@kuvaldini kuvaldini force-pushed the metrics-all-in-one branch 3 times, most recently from 3643a21 to bc9abfe Compare June 16, 2021 08:25
Signed-off-by: kuvaldini <[email protected]>
@kuvaldini kuvaldini merged commit 55f8e71 into hyperledger-iroha:support/1.2.x Jun 16, 2021
@kuvaldini kuvaldini deleted the metrics-all-in-one branch June 16, 2021 13:55
kuvaldini added a commit that referenced this pull request Jul 12, 2021
[Metrics] #837 #883 #919 #896 #835

Integrate kOnBlock to storage_impl.cpp
Closes #837 Add total number of blocks
Closes #883 Number of domains
Closes #919 Number of signatures in the last block
Closes #896 Measure total number of transactions
Closes #835 Total nodes/peers updated when kOnBlock
Should close #835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with
GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not
async
Closes #966 Disable prometheus-cpp self-metrics

Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
This was referenced Jul 12, 2021
kuvaldini added a commit that referenced this pull request Jul 14, 2021
[Metrics] #837 #883 #919 #896 #835

Integrate kOnBlock to storage_impl.cpp
Closes #837 Add total number of blocks
Closes #883 Number of domains
Closes #919 Number of signatures in the last block
Closes #896 Measure total number of transactions
Closes #835 Total nodes/peers updated when kOnBlock
Should close #835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with
GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not
async
Closes #966 Disable prometheus-cpp self-metrics

Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
kuvaldini added a commit that referenced this pull request Jul 14, 2021
[Metrics] #837 #883 #919 #896 #835

Integrate kOnBlock to storage_impl.cpp
Closes #837 Add total number of blocks
Closes #883 Number of domains
Closes #919 Number of signatures in the last block
Closes #896 Measure total number of transactions
Closes #835 Total nodes/peers updated when kOnBlock
Should close #835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with
GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not
async
Closes #966 Disable prometheus-cpp self-metrics

Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
kuvaldini added a commit that referenced this pull request Jul 30, 2021
[Metrics] #837 #883 #919 #896 #835

Integrate kOnBlock to storage_impl.cpp
Closes #837 Add total number of blocks
Closes #883 Number of domains
Closes #919 Number of signatures in the last block
Closes #896 Measure total number of transactions
Closes #835 Total nodes/peers updated when kOnBlock
Should close #835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with
GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not
async
Closes #966 Disable prometheus-cpp self-metrics

Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
Signed-off-by: kuvaldini <[email protected]>
kuvaldini added a commit that referenced this pull request Jul 30, 2021
[Metrics] #837 #883 #919 #896 #835

Integrate kOnBlock to storage_impl.cpp
Closes #837 Add total number of blocks
Closes #883 Number of domains
Closes #919 Number of signatures in the last block
Closes #896 Measure total number of transactions
Closes #835 Total nodes/peers updated when kOnBlock
Should close #835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with
GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not
async
Closes #966 Disable prometheus-cpp self-metrics

Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
Signed-off-by: kuvaldini <[email protected]>
kuvaldini added a commit that referenced this pull request Aug 31, 2021
[Metrics] #837 #883 #919 #896 #835

Integrate kOnBlock to storage_impl.cpp
Closes #837 Add total number of blocks
Closes #883 Number of domains
Closes #919 Number of signatures in the last block
Closes #896 Measure total number of transactions
Closes #835 Total nodes/peers updated when kOnBlock
Should close #835 no online/connected peers parameter in this commit.
Add CMake files to .clang-format-ignore
Disable prometheus-cpp logs
Extend WSV to countDomains(), countTransactions(), countPeers()
-fno-lto to link GCC-10 and clang with civetweb which was built with
GCC-9
Tests dependant on ametsuchi are linked against sync_subscription, not
async
Closes #966 Disable prometheus-cpp self-metrics

Signed-off-by: Ivan 'kuvaldini' Kuvaldin <[email protected]>
Signed-off-by: kuvaldini <[email protected]>
@kamilsa kamilsa mentioned this pull request Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants