mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
Fixes #932 Also fixes #966 Decided not to add Summary type because it has the same functionality as Histogram but makes more calculations on client side (Clio side). See https://prometheus.io/docs/practices/histograms for detailed comparison.
Example of clio monitoring infrastructure
This directory contains an example of docker based infrastructure to collect and visualise metrics from clio.
The structure of the directory:
compose.yamlDocker-compose file with Prometheus and Grafana set up.prometheus.yamlDefines metrics collection from Clio and Prometheus itself. Demonstrates how to setup Clio target and Clio's admin authorisation in Prometheus.grafana/clio_dashboard.jsonJson file containing preconfigured dashboard in Grafana format.grafana/dashboard_local.yamlGrafana configuration file defining the directory to search for dashboards json files.grafana/datasources.yamlGrafana configuration file defining Prometheus as a data source for Grafana.
How to try
- Make sure you have
dockeranddocker-composeinstalled. - Run
docker-compose up -dfrom this directory. It will start docker containers with Prometheus and Grafana. - Open http://localhost:3000/dashboards. Grafana login
admin, passwordgrafana. There will be preconfigured Clio dashboard.
If Clio is not running yet launch Clio to see metrics. Some of the metrics may appear only after requests to Clio.