Pomerium is an identity and context-aware access proxy.
Find a file
Denis Mishin d9412f957a
metrics: don't add units and scope tags to prometheus metrics (#5749)
## Summary

With metrics now going via OTEL -> Prometheus exporter, there were
couple issues:

- some newer metrics had non-standard units that ended up in metric
names like `pomerium_storage_global_cache_hits__hit__total`
- we had three additional tags (`otel_scope_name`,
`otel_scope_schema_url`, `otel_scope_version`) added to each metric,
which do not really carry much meaningful information for us and expand
metric cardinality.

This PR reverts those two changes and updates the prometheus exporter.

## Related issues

Related: https://github.com/open-telemetry/opentelemetry-go/issues/7039

## User Explanation

<!-- How would you explain this change to the user? If this
change doesn't create any user-facing changes, you can leave
this blank. If filled out, add the `docs` label -->

## Checklist

- [x] reference any related issues
- [ ] updated unit tests
- [x] add appropriate label (`enhancement`, `bug`, `breaking`,
`dependencies`, `ci`)
- [x] ready for review
2025-07-24 14:34:11 -04:00
.github test improvements (#5741) 2025-07-23 14:07:11 -06:00
.vscode use tlsClientConfig instead of custom dialer (#3830) 2022-12-27 09:55:36 -07:00
authenticate ssh: implement authorization policy evaluation (#5665) 2025-07-01 12:04:00 -07:00
authorize mcp: fix authorization header removal (#5719) 2025-07-10 20:37:07 -04:00
changelogs changelog for v0.30.0 (#5704) 2025-07-07 14:38:51 -07:00
cmd/pomerium cleanup logs (#5571) 2025-04-14 08:20:10 -06:00
config config: support multiple running services in addition to all-in-one mode (#5656) 2025-07-21 14:28:31 -06:00
databroker databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
examples ci: address Dockerfile warnings (#5283) 2024-09-11 16:56:47 -07:00
integration test improvements (#5741) 2025-07-23 14:07:11 -06:00
internal metrics: don't add units and scope tags to prometheus metrics (#5749) 2025-07-24 14:34:11 -04:00
k8s/zero Fix kustomization warning (#5735) 2025-07-21 14:05:26 -04:00
ospkg move directory providers (#3633) 2022-11-03 11:33:56 -06:00
pkg postgres: fix delete deadlock (#5745) 2025-07-23 16:18:19 -06:00
proxy databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
scripts proto: fix dependencies (#5450) 2025-01-27 14:41:08 -07:00
ui chore(deps): bump @babel/runtime from 7.24.4 to 7.26.10 in /ui (#5522) 2025-04-11 08:02:05 -06:00
.clang-format config: add circuit breaker thresholds (#5650) 2025-06-16 09:38:39 -06:00
.codecov.yml development: change codecov precision 2019-07-18 16:49:37 -07:00
.dockerignore frontend: react+mui (#3004) 2022-02-07 08:47:58 -07:00
.fossa.yml rm cli code (#2824) 2021-12-15 16:25:21 -05:00
.gitattributes assets: use embed instead of statik (#1960) 2021-03-03 18:56:55 -07:00
.gitignore core/ui: improve frontend build size (#5109) 2024-05-09 07:10:00 -06:00
.golangci.yml upgrade to go v1.24 (#5562) 2025-04-02 15:53:09 -06:00
.pre-commit-config.yaml integration: add single-cluster integration tests (#2516) 2021-08-24 15:35:05 -06:00
3RD-PARTY dependencies: vendor base58, remove shortuuid (#2739) 2021-11-02 09:23:15 -06:00
DEBUG.MD deplyoment: add debug build / container / docs (#1513) 2020-10-13 16:54:21 -04:00
Dockerfile chore(deps): bump the docker group with 3 updates (#5682) 2025-07-01 15:45:17 -07:00
Dockerfile.debug chore(deps): bump the docker group with 3 updates (#5682) 2025-07-01 15:45:17 -07:00
go.mod metrics: don't add units and scope tags to prometheus metrics (#5749) 2025-07-24 14:34:11 -04:00
go.sum metrics: don't add units and scope tags to prometheus metrics (#5749) 2025-07-24 14:34:11 -04:00
LICENSE initial release 2019-01-02 12:13:36 -08:00
Makefile test improvements (#5741) 2025-07-23 14:07:11 -06:00
pomerium.go fix go get, improve redis test (#2450) 2021-08-06 12:07:20 -06:00
README.md core/ui: update logo (#5249) 2024-09-05 18:13:06 +02:00
RELEASING.md deployment: update RELEASING.md (#3503) 2022-08-16 10:40:03 -07:00
SECURITY.md Fix SECURITY.md treated as symlink (#5211) 2024-08-07 17:20:18 -04:00

pomerium logo

Go Report Card GoDoc LICENSE Docker Pulls

Pomerium builds secure, clientless connections to internal web apps and services without a corporate VPN.

Pomerium is:

Its not a VPN alternative its the trusted, foolproof way to protect your business. Want a hosted control plane and management GUI? Give Pomerium Zero a try today!

Docs

For comprehensive docs, and tutorials see our documentation.

Contributing

See Contributing for information on how you can contribute to Pomerium.