Commit b323e37
authored
Always write value for apt_upgrades_pending and apt_upgrades_held (#237)
Always write value for apt_upgrades_pending and apt_upgrades_held to
ensure monitoring works.
If there are no held packages or no pending upgrades, nothing is written
to apt.prom, resulting in monitoring dashboards not picking up on these
values. This patch fixes that by ensuring there's always a value for
apt_upgrades_pending and apt_upgrades_held .
---------
Signed-off-by: Maarten Kossen (mpkossen) <[email protected]>1 parent b0ae28d commit b323e37
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | | - | |
64 | | - | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | | - | |
78 | | - | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
0 commit comments