Procstat Module Stops working after upgrade to v1.20.0

Not sure if this is a bug or something has changed in the way this module behaves.

Going from v1.19.3 to 1.20.0 has broken this for us or at least changed the way it reports in Prometheus.


systemd_unit = “sshd.service”

Having the two lines above in the telegraf config has always reported a systemd_unit=“sshd.service” label from a promethues query, but the label is being omitted in 1.20.0.

Also notable that this was an upgrade from the yum repository. The upgrade in itself didn’t have the effect as the service seems to not restart after the package update. Once the service is restarted though, the labels drop off. This isn’t unique to systemd_unit as it occurs with exe as well.