From 8a903f695ef9c7ce5a635293499e36197a3d3eda Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Wed, 1 Oct 2025 01:24:03 +0530 Subject: [PATCH] Update metrics.md --- docs/docs/metrics.md | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/docs/docs/metrics.md b/docs/docs/metrics.md index a462691..6ecbd9f 100644 --- a/docs/docs/metrics.md +++ b/docs/docs/metrics.md @@ -55,7 +55,7 @@ metrics via `/metrics` endpoint: ``` -Here is a sample code snippet demonstrating how to retrieve and print metrics: +Here is a sample code snippet demonstrating how to retrieve and print metrics on Grafana: @@ -64,8 +64,27 @@ at: http://localhost:8080/metrics ## Integrating with Monitoring Tools -To integrate Ollama4j metrics with external monitoring systems, you can export the metrics endpoint and configure your -monitoring tool to scrape or collect the data. Refer to the [integration guide](../integration/monitoring.md) for -detailed instructions. +### Grafana -For more information on customizing and extending metrics, see the [API documentation](../api/metrics.md). +Use the following sample `docker-compose` file to host a basic Grafana container. + + + +And run: + +```shell +docker-compose -f path/to/your/docker-compose.yml up +``` + +This starts Granfana at http://localhost:3000 + + +[//]: # (To integrate Ollama4j metrics with external monitoring systems, you can export the metrics endpoint and configure your) + +[//]: # (monitoring tool to scrape or collect the data. Refer to the [integration guide](../integration/monitoring.md) for) + +[//]: # (detailed instructions.) + +[//]: # () + +[//]: # (For more information on customizing and extending metrics, see the [API documentation](../api/metrics.md).)