Open fluidum opened 3 months ago
you have the textfile collector enabled in your integrations_windows_exporter. If you aren't using it, you can remove it and the errors should go away. Or, create the directory on the hosts that are throwing the error. It basically is trying to read that dir and if it can't find it, will throw the error.
prometheus.exporter.windows "integrations_windows_exporter" { enabled_collectors = ["cpu", "cs", "logical_disk", "net", "os", "service", "system", "**textfile**", "time", "diskdrive"] }
Interesting detail, yesterday I installed default Alloy and appended it with config parts that were required from Grafana Cloud, but if I check now into Cloud then currently there is no clue of textfile key in that config array, except that applocker_logs part.
This issue has not had any activity in the past 30 days, so the needs-attention
label has been added to it.
If the opened issue is a bug, check to see if a newer release fixed your issue. If it is no longer relevant, please feel free to close this issue.
The needs-attention
label signals to maintainers that something has fallen through the cracks. No action is needed by you; your issue will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!
What's wrong?
After installing Grafana Alloy on Windows I noticed once a minute logged errors.
When I created directory C:\Program Files\GrafanaLabs\Alloy\textfile_inputs the error dissapeared.
Steps to reproduce
cd "%TEMP%" && powershell -c Invoke-WebRequest "https://storage.googleapis.com/cloud-onboarding/alloy/scripts/install-windows.ps1" -OutFile "install-windows.ps1" && powershell -executionpolicy Bypass -File ".\install-windows.ps1" -GCLOUD_HOSTED_METRICS_URL "https://<GCLOUD_HOSTED_METRICS_URL>.grafana.net/api/prom/push" -GCLOUD_HOSTED_METRICS_ID ">GCLOUD_HOSTED_METRICS_ID>" -GCLOUD_SCRAPE_INTERVAL "60s" -GCLOUD_HOSTED_LOGS_URL "https://<GCLOUD_HOSTED_LOGS_ID>/loki/api/v1/push" -GCLOUD_HOSTED_LOGS_ID "<GCLOUD_HOSTED_LOGS_ID>" -GCLOUD_RW_API_KEY "<GCLOUD_RW_API_KEY>"
System information
Windows 10 Enterprise 22H2 x64
Software version
Grafana Alloy v1.3.0
Configuration
Logs