apache / polaris

Apache Polaris, the interoperable, open source catalog for Apache Iceberg
https://polaris.apache.org/
Apache License 2.0
1.17k stars 130 forks source link

Create a new singleton metric with an API_NAME tag #431

Closed andrew4699 closed 6 days ago

andrew4699 commented 2 weeks ago

Description

Currently we emit metrics with the API name in the metric name, for example polaris.principals.getPrincipal. This is difficult to query in i.e. Grafana; metric names are not intended to be "dynamic".

This PR adds a new equivalent metric polaris.TimedApi with the API_NAME tag.

Type of change

How Has This Been Tested?

Checklist: