Changes
Page history
fix typo
authored
Oct 02, 2024
by
anarcat
Show whitespace changes
Inline
Side-by-side
service/prometheus.md
View page @
0e78c0ad
...
...
@@ -654,7 +654,7 @@ built-in threshold:
(time() - apt_package_cache_timestamp_seconds)/(60*60) > 24
What this does is calculate the age of the package cache (given by the
`apt_package_cache_timestamp_seconds`
metric) by sub
s
tracting it to
`apt_package_cache_timestamp_seconds`
metric) by subtracting it to
the current time. It gives us a number of second, which we convert to
hours (
`/3600`
) and then check against our threshold (
`> 24`
). This
gives us a value (in this case, in hours), we can reuse in our
...
...
...
...