Skip to content

Comments

fix (ui): Use single FileServer#5024

Merged
SoloJacobs merged 2 commits intoprometheus:mainfrom
SoloJacobs:single-file-server
Feb 22, 2026
Merged

fix (ui): Use single FileServer#5024
SoloJacobs merged 2 commits intoprometheus:mainfrom
SoloJacobs:single-file-server

Conversation

@SoloJacobs
Copy link
Contributor

Previously, we spawned one FileServer per GET request. That is not necessary, and the commit introducing this behaviour was a refactoring commit: 3558e6f

Performance improvement here should be immaterial.

Stacked commit, see #5023

Pull Request Checklist

Please check all the applicable boxes.

  • Please list all open issue(s) discussed with maintainers related to this change
    • Fixes #
  • Is this a new Receiver integration?
  • Is this a bugfix?
    • I have added tests that can reproduce the bug which pass with this bugfix applied
  • Is this a new feature?
    • I have added tests that test the new feature's functionality
  • Does this change affect performance?
    • I have provided benchmarks comparison that shows performance is improved or is not degraded
      • You can use benchstat to compare benchmarks
    • I have added new benchmarks if required or requested by maintainers
  • Is this a breaking change?
    • My changes do not break the existing cluster messages
    • My changes do not break the existing api
  • I have added/updated the required documentation
  • I have signed-off my commits
  • I will follow best practices for contributing to this project

Which user-facing changes does this PR introduce?

None

The original commit made `alertmanager-web-ui-{version}.tar.gz`
available as a release artefact for downstream consumption, see
prometheus#2893

However, we stopped shipping this with the removal of the circle CI, as
can been seen by comparing:
https://github.com/prometheus/alertmanager/releases/download/v0.28.1/alertmanager-web-ui-0.28.1.tar.gz
and
https://github.com/prometheus/alertmanager/releases/tag/v0.29.0

So, this code can be removed without any effect. Because we are moving
to `//go:embed`, it is not helpful to fix this issue.

Signed-off-by: Solomon Jacobs <solomonjacobs@protonmail.com>
Previously, we spawned one `FileServer` per `GET` request. That is not
necessary, and the commit introducing this behaviour was a refactoring
commit: 3558e6f

Performance improvement here should be immaterial.

Signed-off-by: Solomon Jacobs <solomonjacobs@protonmail.com>
@SoloJacobs SoloJacobs merged commit 67a3077 into prometheus:main Feb 22, 2026
8 checks passed
@SoloJacobs SoloJacobs deleted the single-file-server branch February 22, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants