Skip to content

Refactor slm collector #932

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

Merged
merged 2 commits into from
Sep 20, 2024
Merged

Conversation

sysadmind
Copy link
Contributor

  • Move metric Desc to vars to aid in unused linter checks
  • Use new Collector interface

- Move metric Desc to vars to aid in unused linter checks
- Use new Collector interface

Signed-off-by: Joe Adams <[email protected]>
@sysadmind sysadmind requested a review from SuperQ September 13, 2024 20:03
@sysadmind sysadmind added this to the Refactor Collectors milestone Sep 13, 2024
@sysadmind sysadmind merged commit 5c8fca8 into prometheus-community:master Sep 20, 2024
4 checks passed
rtkkroland pushed a commit to rtkwlf/elasticsearch_exporter that referenced this pull request Jan 28, 2025
- Move metric Desc to vars to aid in unused linter checks
- Use new Collector interface

Signed-off-by: Joe Adams <[email protected]>
SuperQ added a commit that referenced this pull request Feb 26, 2025
BREAKING CHANGES:

The flag `--es.slm` has been renamed to `--collector.slm`.

The logging system has been replaced with log/slog from the stdlib. This change is being made across the prometheus ecosystem. The logging output has changed, but the messages and levels remain the same. The `ts` label for the timestamp has bewen replaced with `time`, the accuracy is less, and the timezone is not forced to UTC. The `caller` field has been replaced by the `source` field, which now includes the full path to the source file. The `level` field now exposes the log level in capital letters.

* [CHANGE] Rename --es.slm to --collector.slm #932
* [CHANGE] Replace logging system #942
* [ENHANCEMENT] Add external refresh stats #933

Signed-off-by: SuperQ <[email protected]>
@SuperQ SuperQ mentioned this pull request Feb 26, 2025
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