Fix bug in pv_hourly_cost
metric still emitting even after PV deletion
#2355
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR change?
pv_hourly_cost
metric from thePersistentVolumePriceRecorder
once the PV no longer exists.Does this PR relate to any other PRs?
node_total_hourly_cost
How will this PR impact users?
pv_hourly_cost
even after the deletion of the PV. No issues observed with other PV-related metrics.pv_hourly_cost
once the PV is deleted.Does this PR address any GitHub or Zendesk issues?
How was this PR tested?
pv_hourly_cost
metric was no longer being emittedOld behavior:
New behavior:
Does this PR require changes to documentation?
Have you labeled this PR and its corresponding Issue as "next release" if it should be part of the next OpenCost release? If not, why not?