https://github.com/influxdata/telegraf/blob/4e6e2a297b3fbb6540ae9a5377f9f29bb20e6c41/plugins/inputs/prometheus/kubernetes.go#L201
Because the pod IP will change after the host is shut down and restarted, but the pod name will not change, which will cause the plug-in to always access the old IP, so this key cannot be used to determine whether to update the registered IP. Therefore, it is necessary to change the key value calculation or update the registered IP no matter what when there is an update event, because this does not affect anything.
https://github.com/influxdata/telegraf/blob/4e6e2a297b3fbb6540ae9a5377f9f29bb20e6c41/plugins/inputs/prometheus/kubernetes.go#L201 Because the pod IP will change after the host is shut down and restarted, but the pod name will not change, which will cause the plug-in to always access the old IP, so this key cannot be used to determine whether to update the registered IP. Therefore, it is necessary to change the key value calculation or update the registered IP no matter what when there is an update event, because this does not affect anything.