From b54b73c7b192c9010f3a9100199d17e39ceb7071 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Mon, 7 Sep 2020 22:31:29 +0200 Subject: [PATCH] Remove spurious commas from links to the docs site I assume older Nanoc versions rendered the anchors with commas, but the current doesn't. Also, this adds the same link to another doc comment where it is also relevant. Signed-off-by: beorn7 --- prometheus/metric.go | 2 +- prometheus/summary.go | 2 +- prometheus/wrap.go | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/prometheus/metric.go b/prometheus/metric.go index 35bd8bde3..a2b80b1c1 100644 --- a/prometheus/metric.go +++ b/prometheus/metric.go @@ -89,7 +89,7 @@ type Opts struct { // better covered by target labels set by the scraping Prometheus // server, or by one specific metric (e.g. a build_info or a // machine_role metric). See also - // https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels,-not-static-scraped-labels + // https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels ConstLabels Labels } diff --git a/prometheus/summary.go b/prometheus/summary.go index f3c1440d1..e8f3f152d 100644 --- a/prometheus/summary.go +++ b/prometheus/summary.go @@ -110,7 +110,7 @@ type SummaryOpts struct { // better covered by target labels set by the scraping Prometheus // server, or by one specific metric (e.g. a build_info or a // machine_role metric). See also - // https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels,-not-static-scraped-labels + // https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels ConstLabels Labels // Objectives defines the quantile rank estimates with their respective diff --git a/prometheus/wrap.go b/prometheus/wrap.go index 438aa5e92..c1b12f084 100644 --- a/prometheus/wrap.go +++ b/prometheus/wrap.go @@ -32,7 +32,9 @@ import ( // in a no-op Registerer. // // WrapRegistererWith provides a way to add fixed labels to a subset of -// Collectors. It should not be used to add fixed labels to all metrics exposed. +// Collectors. It should not be used to add fixed labels to all metrics +// exposed. See also +// https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels // // Conflicts between Collectors registered through the original Registerer with // Collectors registered through the wrapping Registerer will still be