add "series" event parameters when pinging cronitor hook #592
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#592
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
i noticed, that for each mode bormatic runs (prune, compact, create etc.) it sends a single ping to cronitor.
it would be a great addition if you also could add the "series" event parameter. it would improve the clarity enormously
Expected behavior
when sending a single ping to cronitor add the current running mode (prune,compact,create etc) as a "series" event parameter in the request.
e.g
in my opinion the best way would be to be able to addd a custom "series" and add a variable which contains the current borg mode.
Environment
borgmatic version: 1.7.2
borgmatic installation method: aur
Borg version: 1.2.2
Python version: Python 3.10.7
operating system and version: Linux 5.19.12-arch1-1 x86_64
Interesting! I didn't know Cronitor supported this. Would this
seriessupport be preferable to a feature like #518 (separate ping URLs per borgmatic action)? Or would you potentially take advantage of both?I like both Ideas.
Then you could decide if you use them in a Single Check and keep the different options appart with the "series" support.
Or you could create different task with the #518 Idea to get a better overview of the duration of the single commands for example.
That makes sense to me!
I know this ticket has been languishing a while, but now I have a question on it, assuming this feature is still of interest to you: borgmatic usually runs with multiple actions (e.g.
create,prune, etc.), and only pings Cronitor with a single start/finish pair for all of those actions rather than each of them. You can optionally run borgmatic with a single action, but that's not the default. So what would be a useful value forseriesin the case when multiple actions are being run? Would that even be helpful, or would it defeat the purpose of this proposed feature?I assume that when you filed this ticket, you were running borgmatic with individual actions, e.g.
borgmatic create,borgmatic prune, etc...? And that's why you wanted to be able to distinguish the pings in Cronitor?An alternate proposal: Instead of putting the action(s) into
series, borgmatic could just generate a unique ID specific to that borgmatic run and put it intoseriesfor both start and finish states. That would allow you to correlate pings within Cronitor even if it doesn't tell you the action(s) run.I'm closing this now due to inactivity, but I can certainly reopen it if you have feedback on the points above. Thank you!