Skip to content

Allow setting the collectors through the config file#21

Open
fbegyn wants to merge 2 commits into
mainfrom
collector-config-file
Open

Allow setting the collectors through the config file#21
fbegyn wants to merge 2 commits into
mainfrom
collector-config-file

Conversation

@fbegyn
Copy link
Copy Markdown
Owner

@fbegyn fbegyn commented Apr 29, 2026

This required some reworking of the collector code to make this work a bit more elegantly.

The old collector config code was thrown together quite rapidly and wasn't easy to maintain or work on (I had to change ode in 3 places when working on the collectors). Node exporter has quite an elegant way for collectors I've always found, so the code base has been changed in line with that behavior.

Before being able to merge it, I need to validate the built and runtime behavior and also clean up the documentation a bit.

fbegyn added 2 commits April 29, 2026 11:39
This makes the maintenance of exporters a little bit easier and allows
for lightwight builds of the exporter by filtering out collectors at
built time( should look into it),.

Assisted-by: Claude code opus 4.7

Signed-off-by: Francis Begyn <francis@begyn.be>
Assisted-by: Claude code opus 4.7

Signed-off-by: Francis Begyn <francis@begyn.be>
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.

1 participant