From b128a8be94b58a42f790f3efff86d7128c23012f Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 22 Aug 2023 09:44:45 +0200 Subject: [PATCH 1/2] fix typos --- platform/statistic/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/statistic/README.md b/platform/statistic/README.md index 0349472dc..b211157a3 100644 --- a/platform/statistic/README.md +++ b/platform/statistic/README.md @@ -26,10 +26,10 @@ sudo apt install grafana ``` ## Change endpoint's server address -Edit [example/start_kv_server.sh](/example/start_kv_server.sh), set the new endpoint address in command line arguments. +Edit [example/start_kv_server.sh](/example/start_kv_server.sh), sets the new endpoint address in command line arguments. # Start the dashboard -Prometheus endpoint start automaticly with nexres. To start nexres: +Prometheus endpoint starts automatically with nexres. To start nexres: ``` sh example/kv_server.sh ``` @@ -54,7 +54,7 @@ sudo service grafana-server enable ``` *Stop grafana: sudo service grafana-server stop* -# Configurate prometheus +# Configure prometheus ## Add prometheus endpoint: Edit “prometheus.yml” under your prometheus folder add the following code after “scrape_configs” @@ -100,7 +100,7 @@ Go to grafana configuration and click data source. Select your prometheus databa ![resolution](/documents/image/dashboard/resolution.png) -# Prometheus metrics developemt: +# Prometheus metrics development: All the prometheus endpoint code and metrics builder are located under Stats class. There are three types of metric variables you can utilize according to the demand. They are Counter, Gauge, and Histogram. You can discover their using scenario in this [link](https://prometheus.io/docs/concepts/metric_types/). To properly integrate these metric types to the code, check prometheus-cpp documentation ([Documentation](https://jupp0r.github.io/prometheus-cpp/), [Example](https://github.com/jupp0r/prometheus-cpp)). Here is an example of starting a prometheus endpoint and adding a metric to the database. @@ -110,12 +110,12 @@ Create a server running on port 8080 Exposer exposer{"127.0.0.1:8080"}; ``` -Create a metrics registry (make sure it is alway alive) +Create a metrics registry (make sure it is always alive) ``` auto registry = std::make_shared(); ``` -Add a new gauge family to the registry (you can change this part to other metric type as your needed) +Add a new gauge family to the registry (you can change this part to other metric type as needed) ``` auto& packet_counter = BuildGauge() .Name("observed_packets_total") From b61596a878be9846f4338f2e0e16b1353bd81482 Mon Sep 17 00:00:00 2001 From: omahs <73983677+omahs@users.noreply.github.com> Date: Tue, 22 Aug 2023 09:45:48 +0200 Subject: [PATCH 2/2] fix typo --- scripts/deploy/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy/README.md b/scripts/deploy/README.md index 0b52f7253..585831cfd 100644 --- a/scripts/deploy/README.md +++ b/scripts/deploy/README.md @@ -5,7 +5,7 @@ This directory includes deployment scripts that help to deploy ResilientDB on mu ## Deploy KV Service Add the IP addresses and the SSH key of the machines where you wish to deploy ResilientDB replicas and client proxy in the file [config/kv_server.conf](https://github.com/msadoghi/nexres/blob/master/deploy/config/kv_server.conf). -We recomment using private IP addresses of each machine. +We recommend using private IP addresses of each machine. * If you do not require any SSH key to log in to a machine, then you would need to update the scripts. * In these scripts, we assume that the ``root`` is ``ubuntu`` and the current working directory is located at ``/home/ubuntu/``. If this is not the case for your machines, you would need to update the scripts.