I was not able to upgrade to Prometheus v2.54.1, because firstly Loki will have to be upgraded to Prometheus v2.55.0 and that version of Prometheus hasn't been released yet.
After this PR is merged, I we should probably also port this bugfix to the Agent.
This I need to do before taking the PR out of draft:
Local testing to make sure static mode metrics work properly during config reloads.
Update changelog
Make sure static mode, Flow, and converters support all the new config arguments added to Prometheus
PR Description
Updating to Prometheus v0.53.2.
I was not able to upgrade to Prometheus v2.54.1, because firstly Loki will have to be upgraded to Prometheus v2.55.0 and that version of Prometheus hasn't been released yet.
After this PR is merged, I we should probably also port this bugfix to the Agent.
This I need to do before taking the PR out of draft:
PR Checklist