From 8c5128940c2baf97ac4118461cb2684170d82a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Depriester?= Date: Thu, 8 Jul 2021 14:26:53 +0200 Subject: [PATCH] feat: add doc to configure singlestat panel --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 73d7601..fa59a6e 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,20 @@ Whether the alerts gathered should be inhibited. ![Parameters](https://raw.githubusercontent.com/camptocamp/grafana-prometheus-alertmanager-datasource/master/img/table.png) +# Panels + +## Singlestat + +To use singlestat panels, you must apply a transformation to your metrics: + +1. Edit your panel and open the "Transform" tab. + +![Transform tab](https://raw.githubusercontent.com/camptocamp/grafana-prometheus-alertmanager-datasource/master/img/singlestat-transform.png) + +2. Select "Reduce" and change the "Calculations" to "Count" + +![Reduce transformation](https://raw.githubusercontent.com/camptocamp/grafana-prometheus-alertmanager-datasource/master/img/singlestat-reduce.png) + # Development Setup Usage of Yarn is encouraged to build.