feat: Add GCP V2 Managed Kafka entity definitions for 6 entity types (NR-565785)#2935
feat: Add GCP V2 Managed Kafka entity definitions for 6 entity types (NR-565785)#2935sparsi17 wants to merge 15 commits into
Conversation
entityBot
left a comment
There was a problem hiding this comment.
beep boop bop.
I have found some errors processing these changes:
- Error VALIDATING domainType: 'INFRA-GCPMANAGEDKAFKACLUSTER' on Golden metrics for key 'SELECT rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit) * 100 FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
- Error VALIDATING domainType: 'INFRA-GCPMANAGEDKAFKACLUSTER' on Golden metrics for key 'SELECT rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit) * 100 FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 97, unexpected 'rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit'
- Error VALIDATING domainType: 'INFRA-GCPMANAGEDKAFKACLUSTER' on Golden metrics for key 'rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit) * 100' - Exception: The NRQL validator was not able to parse the selection.
- No valid, approved ARB ticket found in the PR description. This PR has to be reviewed by the API Review Board, please include a link to the ticket of that review in the PR description. Check how to start the process here or reach
#api-review-boardchannel in case of doubts
|
👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/BEYOND Please review or provide an update. |
entityBot
left a comment
There was a problem hiding this comment.
beep boop bop.
I have found some errors processing these changes:
- Error VALIDATING domainType: 'INFRA-GCPMANAGEDKAFKACLUSTER' on Golden metrics for key 'SELECT rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit) * 100 FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
- Error VALIDATING domainType: 'INFRA-GCPMANAGEDKAFKACLUSTER' on Golden metrics for key 'SELECT rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit) * 100 FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 97, unexpected 'rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit'
- Error VALIDATING domainType: 'INFRA-GCPMANAGEDKAFKACLUSTER' on Golden metrics for key 'rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) / average(gcp.managedkafka.cpu.limit) * 100' - Exception: The NRQL validator was not able to parse the selection.
- No valid, approved ARB ticket found in the PR description. This PR has to be reviewed by the API Review Board, please include a link to the ticket of that review in the PR description. Check how to start the process here or reach
#api-review-boardchannel in case of doubts
…CPU golden metric (NR-565785)
abe67d9 to
a56966d
Compare
…afka entities (NR-565785)
…sub-cluster entities (NR-565785) - Topic, TopicPartition, ConsumerGroup: add gcp.cluster (present in resource labels) - Connector: add gcp.connect_cluster (present in resource labels) - Cluster, ConnectCluster: keep gcp.projectId + gcp.region only (top-level, no parent)
|
👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/BEYOND Please review or provide an update. |
1 similar comment
|
👋 This PR has seen no activity in over 3 days and is still awaiting approval from: @newrelic/BEYOND Please review or provide an update. |
…latencies (NR-565785)
GCP stores managedkafka.request_latencies with numeric percentile labels
('50', '75', '95', '99', '999') — not 'p99'.
- dashboard.json: WHERE metric.percentile = 'p99' → '99'
- golden_metrics.yml: add where: "metric.percentile = '99'" to requestLatencies
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Phase 3a Validation Report — 6 Managed Kafka EntitiesAccount: 10876283 | Collector: Summary Table
Results by EntityGCPMANAGEDKAFKACLUSTER
GCPMANAGEDKAFKACONNECTCLUSTER
GCPMANAGEDKAFKACONNECTOR
GCPMANAGEDKAFKATOPIC
GCPMANAGEDKAFKATOPICPARTITION
GCPMANAGEDKAFKATOPICPARTITIONCONSUMERGROUP
Notes
|
… (NR-565785) Moving to separate PRs. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…tities (NR-565785) Add gcp: query blocks to golden_metrics.yml and dashboard.json for KAFKACLUSTER and KAFKATOPIC to support GCP Managed Kafka metrics. KAFKACLUSTER golden metrics added: - gcpCpuUsage: rate(sum(gcp.managedkafka.cpu.core_usage_time), 1 minute) - gcpOfflinePartitions: average(gcp.managedkafka.offline_partitions) - gcpRequestLatency: average(gcp.managedkafka.request_latencies) WHERE percentile='99' KAFKATOPIC golden metrics added: - gcpMessagesIn: sum(gcp.managedkafka.message_in_count) - gcpBytesIn: sum(gcp.managedkafka.byte_in_count) - gcpTopicErrors: sum(gcp.managedkafka.topic_error_count) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
… GCP-only entries (NR-565785) Add gcp: query blocks to existing metrics where GCP Managed Kafka has a direct equivalent per GCP Cloud Monitoring docs: KAFKACLUSTER: - offlinePartitions: added gcp.managedkafka.offline_partitions - Removed duplicate gcpOfflinePartitions standalone entry KAFKATOPIC: - bytesInPerSecond: added gcp.managedkafka.byte_in_count - bytesOutPerSecond: added gcp.managedkafka.byte_out_count - messagesInPerSecond: added gcp.managedkafka.message_in_count - Removed duplicate gcpBytesIn/gcpMessagesIn standalone entries - Also updated titles to remove OTel-only prefix No GCP equivalent found (kept as-is): - brokerCount, TopicCount, partitionCount (no GCP managed kafka metric) - consumerGroupLag, underReplicatedPartitions, partitionsWithNonPreferredLeader Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
entityBot
left a comment
There was a problem hiding this comment.
beep boop bop.
I have found some errors processing these changes:
- Error VALIDATING domainType: 'INFRA-KAFKACLUSTER' on Golden metrics for key 'SELECT average(gcp.managedkafka.offline_partitions) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.
entityBot
left a comment
There was a problem hiding this comment.
beep boop bop.
I have found some errors processing these changes:
- Error VALIDATING domainType: 'INFRA-KAFKACLUSTER' on Golden metrics for key 'SELECT average(gcp.managedkafka.offline_partitions) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.
…AFKACLUSTER/KAFKATOPIC (NR-565785) golden_metrics: - KAFKACLUSTER.partitionCount: add gcp block (gcp.managedkafka.partitions = 138, confirmed live) - KAFKACLUSTER: offlinePartitions already has gcp block summary_metrics (KAFKACLUSTER): - Add providerAccountName + gcpProjectId tags - Add gcpCpuUsage + gcpRequestLatency references - Clean up existing titles summary_metrics (KAFKATOPIC): - Add providerAccountName + gcpProjectId tags - Add messagesInPerSecond + gcpTopicErrors references - Clean up titles (remove OTel/NR source prefixes) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
entityBot
left a comment
There was a problem hiding this comment.
beep boop bop.
I have found some errors processing these changes:
- Error VALIDATING domainType: 'INFRA-KAFKACLUSTER' on Golden metrics for key 'SELECT sum(gcp.managedkafka.partitions) 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-KAFKACLUSTER' on Golden metrics for key 'SELECT average(gcp.managedkafka.offline_partitions) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: The select clause uses a different value function than the rest.
…ks (NR-565785) Golden metrics validator requires same aggregation function across all query blocks: - partitionCount: sum() → latest() (matches newRelic: and opentelemetry: blocks) - offlinePartitions: average() → max() (matches newRelic: and opentelemetry: blocks) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…-kafka-existing-entities (NR-565785) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
GCP V2 Managed Kafka entity support for 4 entity types (NR-565785).
New entities:
All entities include: definition.yml, golden_metrics.yml, summary_metrics.yml, dashboard.json, UI definition.
🤖 Generated with Claude Code
ARB: https://new-relic.atlassian.net/browse/NR-567584