Sonarr/Radarr/Prowlarr, Hetzner load balancers/floating IPs/certificates, traffic forecast
New integration kinds sonarr, radarr and prowlarr (shared adapter and sync, page under Apps -> Media managers): own health findings, stuck downloads, nearly full disks. Hetzner now reads load balancers (target health), floating IPs and certificates, includes them in the cost estimate, and forecasts the month's traffic against the quota. Migrations 0072 and 0073; docs, metrics and tests included. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9a3d5c466a
commit
d9083adb5b
38 files changed
+18374
-42
No files matched your search
@@ -210,7 +210,7 @@ describe("the cost estimate", () => {
|
||||
primaryIps: [{ id: 1, ip: "1.1.1.1", type: "ipv4", location: "fsn1", assigned: true }, { id: 2, ip: "1.1.1.2", type: "ipv4", location: "fsn1", assigned: false }],
|
||||
prices: PRICES,
|
||||
})!;
|
||||
assert.deepEqual({ ...c }, { currency: "EUR", servers: 15, backups: 2, volumes: 5, snapshots: 0.12, ips: 1, total: 23.12, unassignedIps: 1, unpriced: 0 });
|
||||
assert.deepEqual({ ...c }, { currency: "EUR", servers: 15, backups: 2, volumes: 5, snapshots: 0.12, ips: 1, loadBalancers: 0, floatingIps: 0, total: 23.12, unassignedIps: 1, unpriced: 0 });
|
||||
});
|
||||
|
||||
test("without the price list there is no estimate; a server whose price is not known is counted as unpriced", () => {
|
||||
@@ -251,7 +251,8 @@ describe("what is wrong", () => {
|
||||
});
|
||||
|
||||
test("traffic: a warning from 80% of the month's quota, critical at 100%, in the units the page shows", () => {
|
||||
assert.deepEqual(problems(stored({ outgoingTraffic: 15 * TB })), []);
|
||||
assert.deepEqual(keys(problems(stored({ outgoingTraffic: 15 * TB }))), ["hetzner-forecast:1:1=warning"], "75% on the tenth is on course to pass it: the forecast, not yet the traffic alert");
|
||||
assert.deepEqual(problems(stored({ outgoingTraffic: 5 * TB })), []);
|
||||
const warn = problems(stored({ outgoingTraffic: 17 * TB }));
|
||||
assert.deepEqual(keys(warn), ["hetzner-traffic:1:1=warning"]);
|
||||
assert.match(warn[0].message, /web has sent 17\.0 TB of its 20\.0 TB traffic this month \(85%\)/);
|
||||
|
||||
Reference in new issue
Block a user