This repository provides a comprehensive guide to set up profiling and monitoring for ResilientDB using Prometheus, Grafana, and related tools. The setup includes CPU and memory metrics visualization, GraphQL integration, and ResLens configuration.
Before running the ResLens application, you need to start kv service on the ResDB backend and the sdk.
Git clone the ResLens backend repository, a fork of ResilientDB and follow the instructions to set it up:
git clone https://github.com/harish876/incubator-resilientdbSetup KV Service:
./service/tools/kv/server_tools/start_kv_service_monitoring.shGit clone the GraphQL Repository and follow the instructions on the README to set it up:
Install GraphQL:
git clone https://github.com/ResilientApp/ResilientDB-GraphQL
Setup SDK:
bazel build service/http_server:crow_service_main
bazel-bin/service/http_server/crow_service_main service/tools/config/interface/client.config service/http_server/server_config.configGit clone the ResLens Middleware Repository:
Install ResLens Middleware:
git clone https://github.com/harish876/MemLens-middlewareSetup ResLens Middleware:
npm instal
npm run startFollow this to setup prometheus, grafana and a few other monitoring tools used in this application.
TODO