From 3458e338c6485eeccb5141ef150ec5433761f629 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 20 Oct 2021 21:03:17 +0200 Subject: [PATCH] docs: Improve PuppetDB example (#9547) Signed-off-by: Julien Pivotto --- documentation/examples/prometheus-puppetdb.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/documentation/examples/prometheus-puppetdb.yml b/documentation/examples/prometheus-puppetdb.yml index f7f4313e7..5b10d39fc 100644 --- a/documentation/examples/prometheus-puppetdb.yml +++ b/documentation/examples/prometheus-puppetdb.yml @@ -14,11 +14,10 @@ scrape_configs: - job_name: 'puppetdb-scrape-jobs' puppetdb_sd_configs: - # This example uses the Prometheus::Scrape_job - # exported resources. - # https://github.com/camptocamp/prometheus-puppetdb-sd - # This examples is compatible with Prometheus-puppetdb-sd, - # if the exported Prometheus::Scrape_job only have at most one target. + # This example uses Prometheus::Scrape_job exported resources. + # It is compatible with the prometheus-puppetdb-sd + # (https://github.com/camptocamp/prometheus-puppetdb-sd) if the + # exported resources have exactly one target. - url: https://puppetdb.example.com query: 'resources { type = "Prometheus::Scrape_job" and exported = true }' include_parameters: true