Skip to content

Fix references to text_file collector and lack ofdns config conversion #4024

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

Merged
merged 7 commits into from
Jul 24, 2025

Conversation

dehaansa
Copy link
Contributor

PR Description

A user encountered an issue caused by two issues, with one hiding the other.

  • the dns collector's configuration was not appropriately copied down from Alloy config to exporter config.
  • the textfile collector's documentation & config block reference text_file which led to the user configuring the enabled_collectors incorrectly.

Internal to the exporter, config validation first reported the issues caused by the dns collector even if it was not used and did not report the text_file collector name being incorrect.

@dehaansa dehaansa requested review from clayton-cornell and a team as code owners July 22, 2025 14:22
@dehaansa dehaansa added type/docs Docs Squad label across all Grafana Labs repos backport release/v1.9 backport release/v1.10 and removed backport release/v1.9 labels Jul 22, 2025
Copy link
Contributor

github-actions bot commented Jul 22, 2025

💻 Deploy preview deleted.

…er.windows.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
…er.windows.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
@dehaansa dehaansa merged commit 12d94d3 into main Jul 24, 2025
41 checks passed
@dehaansa dehaansa deleted the docs-nit-windows-textfile branch July 24, 2025 01:42
@grafana-alloybot
Copy link

The backport to release/v1.10 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-4024-to-release/v1.10 origin/release/v1.10
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x 12d94d36ff44c92c34962ac4183ab8d29ab0c373
# Push it to GitHub
git push --set-upstream origin backport-4024-to-release/v1.10
git switch main
# Remove the local backport branch
git branch -D backport-4024-to-release/v1.10

Then, create a pull request where the base branch is release/v1.10 and the compare/head branch is backport-4024-to-release/v1.10.

dehaansa added a commit that referenced this pull request Jul 24, 2025
…rsion (#4024)

* Fix references to  collector

* Ensure DNS config is appropriately converted for windows exporter

* add changelog

* Update docs/sources/reference/components/prometheus/prometheus.exporter.windows.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

* Update blurb about text_file/textfile in windows docs

* Update docs/sources/reference/components/prometheus/prometheus.exporter.windows.md

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>

---------

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
(cherry picked from commit 12d94d3)
dehaansa added a commit that referenced this pull request Jul 24, 2025
…rsion (#4024) (#4049)

* Fix references to  collector

* Ensure DNS config is appropriately converted for windows exporter

* add changelog

* Update docs/sources/reference/components/prometheus/prometheus.exporter.windows.md



* Update blurb about text_file/textfile in windows docs

* Update docs/sources/reference/components/prometheus/prometheus.exporter.windows.md



---------


(cherry picked from commit 12d94d3)

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release/v1.10 type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants