Quick Start - Lightweight Monitoring Stack

This example quick start project deploys a lightweight monitoring stack using Prometheus (metrics collection) and Grafana (dashboards/visualization) via Docker Compose.

The quick start project is available here.

What is deployed?

Prerequisites

Start the Stack

  1. From the project root (where compose.yaml is located), run:

    docker compose up -d
  2. Verify containers and port mappings:

    docker ps

    Expected port mappings:

    • Grafana: 0.0.0.0:3000->3000/tcp

    • Prometheus: 0.0.0.0:10000->10000/tcp

Start the Storage Nodes with metrics enabled and Prometheus port configured

Example 1 - Start the Storage Nodes with Metrics Enabled:

java -Dkvinsight.enable=true -Dprometheus.http.port=8000 -jar lib/kvstore.jar start -root $KVROOT

For more details, see Enable and Configure KVInsight.

You can now see the metrics exposed on port 8000.

Figure 1 - Raw Metrics Exposed to Prometheus

Raw Metrics exposed to Prometheus

This shows the raw Prometheus /metrics endpoint (plain text), which is what Prometheus scrapes to build Grafana dashboards and alerts. Each metric includes a short help text, a type (for example, gauge and counter), and labels like application and service_name to show which node or service it came from.

Access the web interfaces

Stop and remove the stack