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

How to get the Query value widget through datadog api #1915

Open
kumarsyamala opened this issue Mar 20, 2024 · 2 comments
Open

How to get the Query value widget through datadog api #1915

kumarsyamala opened this issue Mar 20, 2024 · 2 comments

Comments

@kumarsyamala
Copy link

Hi

I am trying to use the Datadog Api.

I already have the Datadog dashboard in that we have few widgets which was created to show the trace count query.

I am planning to get the value of the trace count query through Datadog Api using postman. like how we get the details of a dashboard by giving the dashboard id.

I have used the get dashboard Api call through postman, I can the widget and the query also, but I am not getting the value in the response.

Can someone help me in getting the query value from widget trace count?

@nkzou
Copy link
Contributor

nkzou commented Mar 22, 2024

Hi there, you can try using the query_scalar_data function of the Metrics API - docs here. There's some more info about the endpoint here, and an example usage here.

Hopefully that helps, feel free to reach out if you run into any issues.

Copy link

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.

@github-actions github-actions bot added the stale label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants