pomerium/internal
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
..
atomicutil Fix typo, add more test cases for atomicutil, and mention about atomic.Pointer migration (#5736) 2025-07-22 15:11:30 -07:00
authenticateflow databroker: update identity manager to use route credentials (#5728) 2025-07-15 18:04:36 -06:00
autocert autocert: exclude non-https routes (#5733) 2025-07-22 09:28:33 -07:00
benchmarks upgrade to go v1.24 (#5562) 2025-04-02 15:53:09 -06:00
chanutil
contextkeys
controlplane core: test improvements (#5734) 2025-07-22 07:03:50 -06:00
databroker chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
deterministicecdsa
enabler chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
encoding
errgrouputil
events chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
fileutil remove debug log message for directories (#5560) 2025-04-02 10:17:42 -06:00
handlers Add an 'issuer' field to the /.well-known/pomerium endpoint (#5344) 2024-10-25 13:07:57 -04:00
hashutil replace xxhash with xxh3 (#5457) 2025-01-31 08:44:08 -07:00
headertemplate add support for pomerium.request.headers for set_request_headers (#5563) 2025-04-07 10:32:03 -06:00
httputil chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
jsonrpc mcp: respond with jsonrpc error when MCP request is denied (#5694) 2025-07-08 09:07:26 -06:00
jwtutil authorize: support authenticating with idp tokens (#5484) 2025-02-18 13:02:06 -07:00
log authorize: add request body logging (#5696) 2025-07-07 12:12:29 -04:00
mcp mcp: if upstream oauth does not return a refresh token, keep previous (#5738) 2025-07-21 21:10:32 -04:00
middleware New tracing system (#5388) 2025-01-21 13:26:32 -05:00
oauth21 mcp: client registration/token fixes (#5649) 2025-06-11 11:28:24 -04:00
registry upgrade to go v1.24 (#5562) 2025-04-02 15:53:09 -06:00
retry chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
rfc7591 mcp: client registration/token fixes (#5649) 2025-06-11 11:28:24 -04:00
scheduler
sessions chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00
sets core/go: use hashicorp/go-set (#5278) 2024-10-03 12:59:11 -06:00
signal
syncutil
telemetry metrics: don't add units and scope tags to prometheus metrics (#5749) 2025-07-24 14:34:11 -04:00
testenv test improvements (#5741) 2025-07-23 14:07:11 -06:00
tests/xdserr Fix many instances of contexts and loggers not being propagated (#5340) 2024-10-25 14:50:56 -04:00
testutil ssh: improve 'whoami' format (#5714) 2025-07-10 15:57:07 -04:00
tripper
urlutil multi-domain login redirects (#5564) 2025-04-04 13:14:30 -07:00
version ci: do not include timestamp into buildmeta (#5215) 2024-08-15 10:57:10 -04:00
zero chore(deps): bump the go group with 24 updates (#5638) 2025-06-17 09:36:50 -07:00