You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
A METRICS.md file with a sample contents of /metrics.
Store organically to the app, in the same repo (and optionally link there from the dockerhub image page).
A build artifact of a release, adjacent to the binary/packages published as part of the release.
Value proposition
Deprecation of metrics, or introduction of new metrics would be readily noticed.
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).
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
If some of the metrics are conditional (e.g. per-path latency metric), it would be tricky to generate them (would need to query the particular path), but it’s not a big deal if they are missing from the advertized manifest, because: (a) afaik conditional metrics are considered bad practice; (b) usually, it’s only the labels that carry the per-path info.
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.
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:
METRICS.md
file with a sample contents of/metrics
.Value proposition
Additional context
Prior art
The text was updated successfully, but these errors were encountered: