Limit log information to monitoring sites #282

Closed
opened 2020-01-17 08:09:20 +00:00 by ritze · 3 comments

What I'm trying to do and why

Don't push file changes to Healthchecks.io. Filenames are a critical information.

Other notes / implementation ideas

Introduce multiple levels:

  1. Provide all information to monitoring sites (current state with Healthchecks.io)
  2. Provide limited information like the result, e.g.
------------------------------------------------------------------------------
Archive name: machine-1970-01-01_00:00
Archive fingerprint: 0000000000000000000000000000000000000000000000000000000000000000
Time (start): Mon, 1970-01-01 00:00:00
Time (end):   Mon, 1970-01-01 00:42:00
Duration: 42 minutes 0.00 seconds
Number of files: 42
Utilization of max. archive size: 0%
------------------------------------------------------------------------------
                           Original size      Compressed size    Deduplicated size
This archive:               42.00 GB             42.00 GB            420.00 MB
All archives:              420.00 GB            420.00 GB             42.00 GB
                           Unique chunks         Total chunks
Chunk index:                      43                 1337
------------------------------------------------------------------------------
  • Archive name
  • Archive fingerprint
  • time
  • if the checks were successful
  • ...
  1. Don't provide any log information to monitoring sites

Environment

borgmatic version: 1.4.21

borgmatic installation method: Arch Linux package: borgmatic

Borg version: borg 1.1.10

Python version: Python 3.8.1

Database version (if applicable): psql (PostgreSQL) 12.1

operating system and version: Arch Linux (Linux mars 5.4.11-arch1-1)

#### What I'm trying to do and why Don't push file changes to Healthchecks.io. Filenames are a critical information. #### Other notes / implementation ideas Introduce multiple levels: 1. Provide all information to monitoring sites (current state with Healthchecks.io) 1. Provide limited information like the result, e.g. ``` ------------------------------------------------------------------------------ Archive name: machine-1970-01-01_00:00 Archive fingerprint: 0000000000000000000000000000000000000000000000000000000000000000 Time (start): Mon, 1970-01-01 00:00:00 Time (end): Mon, 1970-01-01 00:42:00 Duration: 42 minutes 0.00 seconds Number of files: 42 Utilization of max. archive size: 0% ------------------------------------------------------------------------------ Original size Compressed size Deduplicated size This archive: 42.00 GB 42.00 GB 420.00 MB All archives: 420.00 GB 420.00 GB 42.00 GB Unique chunks Total chunks Chunk index: 43 1337 ------------------------------------------------------------------------------ ``` * Archive name * Archive fingerprint * time * if the checks were successful * ... 1. Don't provide any log information to monitoring sites #### Environment **borgmatic version:** 1.4.21 **borgmatic installation method:** Arch Linux package: [borgmatic](https://www.archlinux.org/packages/community/any/borgmatic) **Borg version:** borg 1.1.10 **Python version:** Python 3.8.1 **Database version (if applicable):** psql (PostgreSQL) 12.1 **operating system and version:** Arch Linux (Linux mars 5.4.11-arch1-1)
Owner

Thank you for filing this! The good news is that I've got a ticket and pull request that I think might take care of this for you (once they're done...):

  • witten/borgmatic#277: A new verbosity flag to limit the borgmatic output sent to Healthchecks.
  • witten/borgmatic#272: More fine-grained control on whether file listings are sent to Healthchecks (or just better defaults).

Does that sound like it'll take care of your needs?

One other note is that in the meantime, if you reduce the global verbosity (and syslog verbosity, if using) to zero, then no filenames will be sent to Healthchecks. Not a great long-term solution, but at least a work-around for now.

Thank you for filing this! The good news is that I've got a ticket and pull request that I think might take care of this for you (once they're done...): * https://projects.torsion.org/witten/borgmatic/issues/277: A new verbosity flag to limit the borgmatic output sent to Healthchecks. * https://projects.torsion.org/witten/borgmatic/pulls/272: More fine-grained control on whether file listings are sent to Healthchecks (or just better defaults). Does that sound like it'll take care of your needs? One other note is that in the meantime, if you reduce the global verbosity (and syslog verbosity, if using) to zero, then no filenames will be sent to Healthchecks. Not a great long-term solution, but at least a work-around for now.
Author

That's exactly what I asked for. But unfortunately, couldn't found when I searched for those the tickets. :-/

Thank you very much.

Can I mark this ticket somehow as duplicated?

That's exactly what I asked for. But unfortunately, couldn't found when I searched for those the tickets. :-/ Thank you very much. Can I mark this ticket somehow as duplicated?
Owner

I'll just add a comment to that ticket referencing this one, and mark this one closed. Please feel free to subscribe to witten/borgmatic#277 so you can find out when it's done!

I'll just add a comment to that ticket referencing this one, and mark this one closed. Please feel free to subscribe to https://projects.torsion.org/witten/borgmatic/issues/277 so you can find out when it's done!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#282
No description provided.