Skip to content

docs: cover typed family descriptors and @StableApi since v1.6.1#2181

Open
zeitlinger wants to merge 1 commit into
mainfrom
docs/post-1.6.1
Open

docs: cover typed family descriptors and @StableApi since v1.6.1#2181
zeitlinger wants to merge 1 commit into
mainfrom
docs/post-1.6.1

Conversation

@zeitlinger
Copy link
Copy Markdown
Member

Summary

  • update getting-started/registry.md to recommend getMetricFamilyDescriptor() for custom collectors, with a short example and a note that the fragmented getPrometheusName()/getMetricType()/getLabelNames()/getMetadata() methods are deprecated but still bridged
  • update internals/model.md to reference getMetricFamilyDescriptor()
  • add internals/stability.md covering @StableApi, mise run api-diff, the baseline tracked in pom.xml (Renovate-managed) with diffs under docs/apidiffs/, and the breaking-api-change-accepted label

Covers user-facing changes since v1.6.1:

Test plan

  • preview rendered docs locally
  • verify intra-doc links resolve

Update registry and model docs to point custom collectors at
getMetricFamilyDescriptor(), noting the deprecated fragmented
metadata methods bridge for compatibility.

Add an internals/stability page covering @stableAPI, the
mise run api-diff baseline check, and the
breaking-api-change-accepted label.

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger marked this pull request as ready for review June 3, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant