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

Add exclude stanza option. #7

Merged
merged 6 commits into from
Sep 7, 2021
Merged

Add exclude stanza option. #7

merged 6 commits into from
Sep 7, 2021

Conversation

woblerr
Copy link
Owner

@woblerr woblerr commented Sep 5, 2021

Added the ability to specify one or multiple stanzas to exclude from collecting metrics:

  • flag backrest.stanza-exclude - specific stanza to exclude from collecting metrics, by default - "". Can be specified several times;
  • flag backrest.stanza was renamed to backrest.stanza-include.

For Docker image:

  • added env variable STANZA_EXCLUDE.
  • renamed env variable STANZA to STANZA_INCLUDE.

Updated README.

Refactoring:

  • refused to use reflect.deepEqual in favor of a simpler check for default values.

Rename variable STANZA to STANZA_INCLUDE.
* Add info for backrest.stanza-exclude flag.
* Update docker image description and examples.
@woblerr woblerr self-assigned this Sep 5, 2021
Refuse to use reflect.deepEqual in favor of a simpler check for default values for arguments backrest.stanza-include and backrest.stanza-exclude.
@woblerr woblerr merged commit fe402f8 into master Sep 7, 2021
@woblerr woblerr deleted the add_exclude_option branch September 7, 2021 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant