Skip to content

Refactor indices_settings collector - #1181

Open
sysadmind wants to merge 1 commit into
prometheus-community:masterfrom
sysadmind:refactor-indices-settings
Open

Refactor indices_settings collector#1181
sysadmind wants to merge 1 commit into
prometheus-community:masterfrom
sysadmind:refactor-indices-settings

Conversation

@sysadmind

Copy link
Copy Markdown
Contributor
  • Move metric Desc to package vars
  • Use new COllector interface
  • Collapse response struct into the indices_settings.go file
  • Consolidate HTTP code into the Update() function

The tests haven't changed - this is a refactor only.

- Move metric Desc to package vars
- Use new COllector interface
- Collapse response struct into the indices_settings.go file
- Consolidate HTTP code into the Update() function

Signed-off-by: Joe Adams <github@joeadams.io>
@sysadmind
sysadmind requested a review from SuperQ June 4, 2026 03:13

@ArthurSens ArthurSens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I believe README also needs to be updated with the new flag. And what is the plan with the current es.indices flag?

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.

2 participants