Skip to content

feat: add ability to scrape log files by name#128

Open
arturo-seijas wants to merge 10 commits intocanonical:mainfrom
arturo-seijas:scrape-file-logs
Open

feat: add ability to scrape log files by name#128
arturo-seijas wants to merge 10 commits intocanonical:mainfrom
arturo-seijas:scrape-file-logs

Conversation

@arturo-seijas
Copy link

Issue

Fixes #120

Solution

Context

Testing Instructions

Upgrade Notes

@sed-i sed-i changed the title Add abiity to scrape log files by name feat: add ability to scrape log files by name Nov 17, 2025
Copy link
Contributor

@sed-i sed-i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, this looks promising!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this charmib is owned by the grafana agent charm, end eventually, before this PR merges, we would need to have this change merged there first.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll open a PR once this one has the green light

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javierdelapuente has been able to test this and confirms that the logs are exported as expected. When setting a log file from /var/log, the files are exported twice, via the old mechanism and also via the new. We consider that to be out of scope of the PR. If you are ok with this, I'll open a PR in the grafana agent charm with the lib change

arturo-seijas and others added 2 commits November 18, 2025 16:18
Co-authored-by: Leon <82407168+sed-i@users.noreply.github.com>
Signed-off-by: arturo-seijas <102022572+arturo-seijas@users.noreply.github.com>
Copy link
Contributor

@sed-i sed-i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks!
Would you be able to open a tandem PR on some principal charm to confirm this works as intended?

@arturo-seijas arturo-seijas marked this pull request as ready for review January 5, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to scrape log files by name (without log slot)

2 participants