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

Experiment in pruning unused exporters #6823

Closed
wants to merge 3 commits into from
Closed

Conversation

SandersAaronD
Copy link

@SandersAaronD SandersAaronD commented Apr 4, 2024

This is just a draft to get a clean diff I can share, this isn't a real proposal of any kind that anyone should ever consider merging.

Likely want to do a local build and prune off most of the exporters as unused to minimize file size, this branch prunes a lot of them but some still appear to be bundled into the binary when running "go tool nm -size -sort size" on it (eg, the oracle exporter is still in there). That output is 30mb so I can't upload it but available on request.

My best guess is that there are other stray references to the pruned exporters hanging around and I just haven't found them yet, which makes this actually a fantastically uninteresting diff and not that important for anyone to look at. Thanks @rfratto for pointing me in the right direction.

@CLAassistant
Copy link

CLAassistant commented Apr 4, 2024

CLA assistant check
All committers have signed the CLA.

@SandersAaronD SandersAaronD changed the title prune stuff not needed for my use case Experiment in pruning unused exporters Apr 4, 2024
@rfratto rfratto added variant/static Related to Grafana Agent Static. variant/flow Relatd to Grafana Agent Flow. enhancement New feature or request labels Apr 9, 2024
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Jun 8, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. variant/flow Relatd to Grafana Agent Flow. variant/static Related to Grafana Agent Static.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants