Skip to content

Conversation

@mikenomitch
Copy link
Contributor

Summary

Adds example of querying GraphQL for container metrics.

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

@mikenomitch mikenomitch self-assigned this Jul 24, 2025
@mikenomitch mikenomitch requested a review from gpanders July 24, 2025 22:49
@github-actions github-actions bot added size/s product:analytics Related to Analytics product labels Jul 24, 2025
@github-actions
Copy link
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/analytics/ @jimhawkridge, @soheiokamoto, @angelampcosta, @cloudflare/pcx-technical-writing

@mikenomitch
Copy link
Contributor Author

@gpanders anything look off about my query?

I'm getting this response when I run it: {"data":{"viewer":{"accounts":[{"cloudchamberMetricsAdaptiveGroups":[]}]}},"errors":null}

Comment on lines 21 to 24
"query": "query GetCloudchamberMetrics($accountTag: string!, $datetimeStart: Time, $datetimeEnd: Time, $applicationId: string) {
viewer {
accounts(filter: { accountTag: $accountTag }) {
cloudchamberMetricsAdaptiveGroups(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before we document this publicly we should investigate whether it's possible to rename/alias this so that users can use containersMetricsAdaptiveGroups instead of cloudchamber. I'll ask internally about this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gpanders do you have any updates? Is it ok to merge?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've changed this internally so that containersMetricsAdaptiveGroups will work. We should update this PR to use that instead of cloudchamber.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've approved. @mikenomitch @gpanders I can merge it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:analytics Related to Analytics product size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants