Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/v1.5] fix doc "collect/metamonitoring": relocate 'replace prometheus.exporter.self "<SELF_LABEL>" instruction' to correct location #3003

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/sources/collect/metamonitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ In this task, you use the [`prometheus.exporter.self`][prometheus.exporter.self]
}
```

Replace the following:
* _`<SELF_LABEL>`_: 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
Expand All @@ -49,7 +52,6 @@ In this task, you use the [`prometheus.exporter.self`][prometheus.exporter.self]
```

Replace the following:
* _`<SELF_LABEL>`_: 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.
* _`<SCRAPE_LABEL>`_: The label for the scrape component such as `default`. The label must be unique across all `prometheus.scrape` components in the same configuration file.
* _`<METRICS_RECEIVER_LIST>`_: 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`.
Expand Down