healthchecks ping_url support replacement with variables #756
Labels
No Label
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#756
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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'd like to do and why
It would be great if Variables would get replaced in the healthchecks ping_url
I do not use healthchecks but a self written Application that consume the Logs.
My Use Case is the FQDN that I would like to replace in the URL ?host={fqdn}
Other notes / implementation ideas
No response
So to clarify, you're wanting borgmatic to support Borg placeholders? One challenge with that I can think of would be that it could be ambiguous whether you wanted borgmatic or Borg to do the substitution for any given placeholder. Although I guess if they really were identical, it wouldn't matter.
It's not quite the same as Borg placeholders, but have you seen borgmatic's constants feature? That lets you define your own values like
fqdn
or whatever else. Another alternative would be to use an environment variable, either an existing variable or one you set explicitly for this purpose. Example:Let me know your thoughts.
Yes that looks like the best solution for my Problem at the Moment.
I would like to deploy the same config to a few Servers as a Debian Package, when possible without modifying the config file or the Environment itself.
I also tried the constants feature to read a the Hostname from a File.
which is working but contains only the hostname and not the fqdn, which is ok but not the best solution for me.
I hope it is more understandable now