Skip to content

Conversation

@NSSPKrishna
Copy link
Member

Relevant information

This fixes the golden signal metrics for the dockerstats otel

Checklist

  • I've read the guidelines and understand the acceptance criteria.
  • The value of the attribute marked as identifier will be unique and valid.
  • I've confirmed that my entity type wasn't already defined. If it is I'm providing an explanation above.

Copy link
Contributor

@lujop lujop left a comment

Choose a reason for hiding this comment

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

Validations don't pass, look at networkTrafficTotal where you have bad identation

select: max(docker.container.cpuPercent) or max(k8s.container.cpuCoresUtilization) AS 'CPU Utilization (%)'
opentelemetry:
# via dockerstatsreceiver & kubeletstatsreceiver – which send equivalent value named container.cpu.usage, container.cpu.utilization (deprecated)
select: max(container.cpu.usage or container.cpu.utilization) AS 'CPU Utilization (%)'
Copy link
Contributor

Choose a reason for hiding this comment

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

Is max this way correct, in some places you use the or inside and in others outside?

Copy link
Member Author

Choose a reason for hiding this comment

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

There are two fields that a customer can set up in their OTel configuration, enabling the ingestion of either or both simultaneously, specifically for the dockerstats receiver. The other queries listed here pertain to metrics from the Kubernetes receiver, which are separate and not currently within scope. Just as a note, this change has already been merged into the main branch.

Copy link
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

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

beep boop bop.

I have found some errors processing these changes:

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT rate(sum(container.cpu.usage.total)/1E9, 1 second) AS 'CPU usage (cores)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT rate(sum(container.network.rx_bytes), 1 second) + rate(sum(container.network.tx_bytes), 1 second) AS 'Network traffic (bytes per second)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.

@entityBot entityBot requested a review from a team November 4, 2025 19:11
github-actions[bot]
github-actions bot previously approved these changes Nov 4, 2025
@entityBot entityBot dismissed stale reviews from github-actions[bot] and themself November 5, 2025 08:45

Let's validate those changes.

Copy link
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

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

beep boop bop.

I have found some errors processing these changes:

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT rate(sum(container.cpu.usage.total)/1E9, 1 second) AS 'CPU usage (cores)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT rate(sum(container.network.rx_bytes), 1 second) + rate(sum(container.network.tx_bytes), 1 second) AS 'Network traffic (bytes per second)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.

github-actions[bot]
github-actions bot previously approved these changes Nov 5, 2025
@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

1 similar comment
@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

Copy link
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

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

beep boop bop.

I have found some errors processing these changes:

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT (sum(container.cpu.usage.total) / 1E9) / sum((endTimestamp - timestamp) / 1000) AS 'CPU usage (cores)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT (sum(container.network.rx_bytes) / sum((endTimestamp - timestamp) / 1000)) + (sum(container.network.tx_bytes) / sum((endTimestamp - timestamp) / 1000)) AS 'Network traffic (bytes per second)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause cannot be used to produce a valid golden metric.

@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 4 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

2 similar comments
@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

@entityBot entityBot dismissed their stale review December 1, 2025 17:27

Let's validate those changes.

Copy link
Collaborator

@entityBot entityBot left a comment

Choose a reason for hiding this comment

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

beep boop bop.

I have found some errors processing these changes:

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT (sum(container.cpu.usage.total) / 1E9) / sum((endTimestamp - timestamp) / 1000) AS 'CPU usage (cores)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.

* Error VALIDATING domainType: 'INFRA-CONTAINER' on Golden metrics for key 'SELECT (sum(container.network.rx_bytes) / sum((endTimestamp - timestamp) / 1000)) + (sum(container.network.tx_bytes) / sum((endTimestamp - timestamp) / 1000)) AS 'Network traffic (bytes per second)' FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause cannot be used to produce a valid golden metric.

@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

@naxhh
Copy link
Contributor

naxhh commented Dec 11, 2025

Please fix the issues

@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

1 similar comment
@entityBot
Copy link
Collaborator

⚠️ Review Required ⚠️

👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/EP

Please review or provide an update.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants