**What this PR does / why we need it**: Previously on Mac, running these
tests triggers a dialog box asking me to accept all incoming network
connections. Edit the test to listen on localhost only.
**Which issue(s) this PR fixes**:
Updates #10407
**Special notes for your reviewer**:
**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [x] Documentation added (Just test changes, no documentation changes)
- [X] Tests updated
- [x] `CHANGELOG.md` updated (Not worth adding to CHANGELOG)
- [x] If the change is worth mentioning in the release notes, add
`add-to-release-notes` label (Not worth adding to release notes)
- [x] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/setup/upgrade/_index.md` (No user attention
required)
- [x] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e3ec)
(No need to do this)
// Since the push target underlying http server registers metrics in the default registerer, we have to override it to prevent duplicate metrics errors.