IBims1NicerTobi
  • Joined on 2023-08-14
IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#714 2023-09-02 17:10:33 +00:00
Log various facts about system and dependencies at startup under high verbosity

I would probably only print PRETTY_NAME if available, maybe NAME and VERSION as fallback and nothing else otherwise as the distro probably matters least for debugging and it should be fine…

IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#714 2023-09-01 03:31:34 +00:00
Log various facts about system and dependencies at startup under high verbosity

Ok so I have most of this done, the only roadblock I have hit is how to deal with borg versions. The issue is that a user can have as many different borg versions installed as they want (not that…

IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#714 2023-08-29 10:01:46 +00:00
Log various facts about system and dependencies at startup under high verbosity

One question that remains is: Where will we implement this? Does borgmatic log this every time someone runs with loglevel 2? I personally think for the os and version info it would be good to…

IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#714 2023-08-29 09:51:55 +00:00
Log various facts about system and dependencies at startup under high verbosity

I have looked at some of the options for getting os and env info and the best choice seems to be using pythons platform for that. It basically ticks all the boxes so far:

  • Maintained without…
IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#714 2023-08-28 19:46:18 +00:00
Log various facts about system and dependencies at startup under high verbosity

We could start by getting the distro and the version from /etc/os-release for linux as almost all distros have that file afaik. Borg otherwise supports many more unix like operating systems. I…

IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#743 2023-08-27 20:43:58 +00:00
Grafana loki support

The docs you added look great. I don't think I have anything to add so far but I would like to say that I have only tested the hook against a local grafana loki instance and I have not yet…

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-24 11:18:38 +00:00
Added support for grafana loki

I updated the branch based on what you wrote @witten

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-24 11:10:51 +00:00
Added support for grafana loki

Mainly whitespace etc. It's more consistent this way and we don't have to worry about anything formatting related.

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-24 11:07:20 +00:00
Added support for grafana loki

I changed this test to makes more sense. It now checks that the buffer gets the exact message I expect.

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-24 10:37:50 +00:00
Added support for grafana loki

Thats fixed now

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-23 15:18:21 +00:00
Added support for grafana loki

@witten Unit tests are done now.

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-22 21:00:17 +00:00
Added support for grafana loki

Tests are coming as soon as you are fine with the current state of the hook and the mayor questions are resolved.

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-22 20:48:44 +00:00
Added support for grafana loki

I don't think adding a entry that we are bailing is useful here as I added the entry for every time we flush the buffer now (which is at least once per program).

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-22 20:41:25 +00:00
Added support for grafana loki

Well I am trying to not hit the max request size limits of a lot of loki instances that run behind e.g. nginx. I think it is much better for large volumes of logs to be pushed incrementally…

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-22 20:27:20 +00:00
Added support for grafana loki

Yes there is a reason for doing it this way. First of all as far as I am aware the function is just supposed to inform the monitoring app of the current state. If we used logger.info() the…

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-22 20:23:26 +00:00
Added support for grafana loki

I wanted to ask about this anyway: Is the hostname of the system used anywhere else so we can have consistent naming? Not that it matters much for this as users can change the hostname label…

IBims1NicerTobi commented on pull request borgmatic-collective/borgmatic#747 2023-08-22 20:21:44 +00:00
Added support for grafana loki

Not really. Grafana loki labels are rarely longer than a single word and the placeholders can be compared to what grafana themself have implemented in promtail which is their loki log agent. The…

IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#743 2023-08-22 01:16:32 +00:00
Grafana loki support

The basics are done in the pull request.

IBims1NicerTobi created pull request borgmatic-collective/borgmatic#747 2023-08-22 01:15:22 +00:00
Added support for grafana loki
IBims1NicerTobi commented on issue borgmatic-collective/borgmatic#743 2023-08-21 14:12:50 +00:00
Grafana loki support

So I have basically finished the core implementation now and I'm working on the configuration and have a question about the schema. Is it possible to allow a dict of arbitrary strings as key/value…