eclipse / microprofile-metrics

microprofile-metrics
Apache License 2.0
100 stars 66 forks source link

requirement to have consistent tag sets causes problems for multi-app app server implementations #766

Closed donbourne closed 10 months ago

donbourne commented 1 year ago

Problem mp_app, used at app level, causes one of (server's) /metrics and (app's) servlet stats to not register

For example, an HTTP endpoint could apply to both an app's endpoints and to server-level endpoints such as /metrics or /health. If the app uses the mp_app tag on its metrics then, because we require all tag sets to be consistent for a metric name, the server-level metrics must similarly have an mp_app tag. Since the mp_app value is not generally set at a server level, it is not possible to use it for server-level endpoints.

Potential solution: