From 23c5ccd47851080401d367fa3a93267d0dfe335c Mon Sep 17 00:00:00 2001 From: Bertrand Tan <44689249+Berttwm@users.noreply.github.com> Date: Fri, 11 Feb 2022 06:56:30 +0800 Subject: [PATCH] Update metrics docs for Prometheus config file (#1058) Additional settings needs to be added into Prometheus config file for it to work. --- website/content/usage/metrics.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/website/content/usage/metrics.md b/website/content/usage/metrics.md index 296cf24cf..efd0aced5 100644 --- a/website/content/usage/metrics.md +++ b/website/content/usage/metrics.md @@ -24,6 +24,17 @@ Add this to your yaml config file to enable serving prometheus metrics at the en enable-prometheus: true ``` +Additionally, in your Prometheus config file (prometheus.yml), add the following to link dkron metric endpoint +```yaml +scrape_configs: + ... #initial configuration + + - job_name: "dkron_metrics" + # metrics_path defaults to '/metrics' + static_configs: + - targets: ["localhost:6080"] +``` + ## Metrics - dkron.agent.event_received.query_execution_done