replace the 'predict-os' code with prometheus
prometheus will soon ship support for release number metrics in the node exporter (commit, not yet released) that will look something like this:
# HELP node_os_info A metric with a constant '1' value labeled by build_id, id, id_like, image_id, image_version, name, pretty_name, variant, variant_id, version, version_codename, version_id.
# TYPE node_os_info gauge
node_os_info{build_id="",id="ubuntu",id_like="debian",image_id="",image_version="",name="Ubuntu",pretty_name="Ubuntu 20.04.2 LTS",variant="",variant_id="",version="20.04.2 LTS (Focal Fossa)",version_codename="focal",version_id="20.04"} 1
# HELP node_os_version Metric containing the major.minor part of the OS version.
# TYPE node_os_version gauge
node_os_version{id="ubuntu",id_like="debian",name="Ubuntu"} 20.04
while we wait for this to trickle down into debian, Puppet could probably very easily write such a textfile for the node exporter to scrape.
we could use this to keep track of the upgrade progress, instead of extracting that data out of Puppet into a CSV file by hand. it's not clear to me we could easily get the prediction date though, but maybe with a little bit of python (in the monthly-report
?) that could be done as well.
in any case, it feels like a lot of legacy code that we could scrap.