Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetMetricMetadata returns no type for distribution metric #2987

Open
rrey opened this issue Mar 18, 2025 · 0 comments
Open

GetMetricMetadata returns no type for distribution metric #2987

rrey opened this issue Mar 18, 2025 · 0 comments
Labels
kind/bug Bug related issue

Comments

@rrey
Copy link

rrey commented Mar 18, 2025

Describe the bug

The GetMetricMetadata endpoint returns an empty object for a Distribution that was just emitted.
For a Counter metric, the endpoint will return a minimal object with type specified. I expected to have the distribution type provided.

To Reproduce
Steps to reproduce the behavior:

Using the samples from the doc (edit the metric names)

  1. Emit a distribution point: https://docs.datadoghq.com/api/latest/metrics/?code-lang=go#submit-distribution-points
  2. Emit a Counter : (edited the metric type to datadogV2.METRICINTAKETYPE_COUNT.Ptr(): https://docs.datadoghq.com/api/latest/metrics/?code-lang=go#submit-metrics
  3. Call metric metadata endpoint for the 2 metrics.
  4. See the outputs:

For the counter:

Response from `MetricsApi.GetMetricMetadata`:
{
  "type": "count"
}

For the Distribution:

Response from `MetricsApi.GetMetricMetadata`:
{}

Expected behavior
For the distribution I would expect a distribution type:

Response from `MetricsApi.GetMetricMetadata`:
{
  "type": "distribution"
}

Additional context

N/A

@rrey rrey added the kind/bug Bug related issue label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug related issue
Projects
None yet
Development

No branches or pull requests

1 participant