From fb1e19bd68805df4f61ec516d02ff6afce8a821d Mon Sep 17 00:00:00 2001 From: Edwin S <54180289+edv1n@users.noreply.github.com> Date: Fri, 14 Mar 2025 19:27:59 +0100 Subject: [PATCH] fix doc "collect/metamonitoring": the instruction of replace prometheus.exporter.self to correct location (#2997) (cherry picked from commit f1619636a942a4cda84e83ea489c71ec38241d19) --- docs/sources/collect/metamonitoring.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/sources/collect/metamonitoring.md b/docs/sources/collect/metamonitoring.md index 9bb30dce19..5bd0d4b2e8 100644 --- a/docs/sources/collect/metamonitoring.md +++ b/docs/sources/collect/metamonitoring.md @@ -39,6 +39,9 @@ In this task, you use the [`prometheus.exporter.self`][prometheus.exporter.self] } ``` + Replace the following: + * _``_: The label for the component such as `default` or `metamonitoring`. The label must be unique across all `prometheus.exporter.self` components in the same configuration file. + 1. Add the following `prometheus.scrape` component to your configuration file. ```alloy @@ -49,7 +52,6 @@ In this task, you use the [`prometheus.exporter.self`][prometheus.exporter.self] ``` Replace the following: - * _``_: The label for the component such as `default` or `metamonitoring`. The label must be unique across all `prometheus.exporter.self` components in the same configuration file. * _``_: The label for the scrape component such as `default`. The label must be unique across all `prometheus.scrape` components in the same configuration file. * _``_: A comma-delimited list of component receivers to forward metrics to. For example, to send to a remote write component, use `prometheus.remote_write.WRITE_LABEL.receiver`.