HoraeDB is observable with Prometheus and Grafana.
Prometheus is a systems and service monitoring system.
Save the following configuration into the prometheus.yml file. For example, in the tmp directory, /tmp/prometheus.yml.
Two HoraeDB http service are started on localhost:5440 and localhost:5441.
global: scrape_interval: 30s scrape_configs: - job_name: horaedb-server static_configs: - targets: [your_ip:5440, your_ip:5441] labels: env: horaedbcluster
See details about configuration here.
You can use docker to start Prometheus. The docker image information is here.
docker run \
-d --name=prometheus \
-p 9090:9090 \
-v /tmp/prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus:v2.41.0
For more detailed installation methods, refer to here.
Grafana is an open and composable observability and data visualization platform.
You can use docker to start grafana. The docker image information is here.
docker run -d --name=grafana -p 3000:3000 grafana/grafana:9.3.6
Default admin user credentials are admin/admin.
Grafana is available on http://127.0.0.1:3000.
For more detailed installation methods, refer to here.
Note: The url of Prometheus is http://your_ip:9090.
See more details here.
dashboard json
After importing the dashboard, you will see the following page: