open-telemetry / sig-end-user

Apache License 2.0
5 stars 7 forks source link

Manifest for metrics endpoint #70

Open sed-i opened 2 weeks ago

sed-i commented 2 weeks ago

Problem

Currently, there is no obvious way to obtain the metrics an application exposes, without first deploying the application.

Proposal

Come up with a standard for documenting the metrics an application exposes. This could take different forms, for example:

Value proposition

  1. Deprecation of metrics, or introduction of new metrics would be readily noticed.
  2. Metric names used in alert expressions or dashboard panels could be more easily linted against the manifest(s), flagging those that rely on no longer existing metric names (modulo recording rules).
  3. Users would be able to make informed decisions about alternative applications, based on how they are instrumented, and without needed to first deploy them.

Additional context

Prior art

danielgblanco commented 2 days ago

Hi @sed-i, normally this time of proposal would come as a new project project in our community repo, or as an OTEP. Having said this, @svrnm has a draft for a project proposal on this same topic. I think it could meet the requirements above and integrate with our Registry.