Skip to content

Sending metric metadata along with metrics so the PrometheusSink.#6422

Draft
san81 wants to merge 2 commits into
opensearch-project:mainfrom
san81:prometheus-metada-fix
Draft

Sending metric metadata along with metrics so the PrometheusSink.#6422
san81 wants to merge 2 commits into
opensearch-project:mainfrom
san81:prometheus-metada-fix

Conversation

@san81
Copy link
Copy Markdown
Collaborator

@san81 san81 commented Jan 23, 2026

Description

data-prepper sending metrics to AMP, but when getting metrics names, metadata API returning null. This PR is fixing that by creating the metadata from the metrics and adding it to the Prometheus Timeseries protobuf object.

curl localhost:8005/workspaces/ws-445f0d94-176f-4b53-93fd-1a6c66b8673a/api/v1/label/__name__/values

but this API returns empty before this fix. But now it returns the metadata.

curl localhost:8005/workspaces/ws-445f0d94-176f-4b53-93fd-1a6c66b8673a/api/v1/metadata
{"status":"success","data":{}}%

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

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