Skip to content

feat: Add OCISERVICEGATEWAY entity definition (staging)#3068

Open
aprasad-sketch wants to merge 3 commits into
newrelic:mainfrom
aprasad-sketch:feat/oci-ociservicegateway-entity
Open

feat: Add OCISERVICEGATEWAY entity definition (staging)#3068
aprasad-sketch wants to merge 3 commits into
newrelic:mainfrom
aprasad-sketch:feat/oci-ociservicegateway-entity

Conversation

@aprasad-sketch

Copy link
Copy Markdown
Contributor

Add OCI Service Gateway entity definition with synthesis rules, golden metrics, and summary metrics. Staging-only (.stg.yml / .stg.json).

Entity Type

  • Type: INFRA-OCISERVICEGATEWAY
  • Provider: OCI (Oracle Cloud Infrastructure)
  • Namespace: oci_service_gateway
  • OCID prefix: ocid1.servicegateway

Golden Metrics

  • Bytes to Service (oci.service.gateway.bytes.to.service)
  • Bytes from Service (oci.service.gateway.bytes.from.service)
  • Packet Drops to Service (oci.service.gateway.sgw.drops.to.service)
  • Packet Drops from Service (oci.service.gateway.sgw.drops.from.service)

Metric Source

https://docs.oracle.com/en-us/iaas/Content/Network/Reference/SGWmetrics.htm

🤖 Generated with Claude Code

Add OCI Service Gateway entity definition with:
- Entity definition with synthesis rules
- Golden metrics
- Summary metrics
- Test data
- Using .stg.yml/.stg.json suffix (staging only)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@entityBot entityBot left a comment

Copy link
Copy Markdown
Collaborator

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-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.bytes.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.bytes.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 38, unexpected 'sum(oci.service.gateway.bytes.from'
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'sum(oci.service.gateway.bytes.from.service)' - Exception: The NRQL validator was not able to parse the selection.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.sgw.drops.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.sgw.drops.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 42, unexpected 'sum(oci.service.gateway.sgw.drops.from'
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'sum(oci.service.gateway.sgw.drops.from.service)' - Exception: The NRQL validator was not able to parse the selection.
  • We don't think these changes require an API Review Board (ARB) review, so it is not required to merge this PR. Note that all API changes do require one: if you believe this PR needs an ARB review, please create the ticket and add the ARB:pending label. Reach #api-review-board in case of doubts.

@entityBot
entityBot requested a review from a team July 21, 2026 08:17
@entityBot
entityBot requested a review from a team July 23, 2026 09:07
@entityBot
entityBot dismissed stale reviews from dachepallysaikirannewrelic and themself July 23, 2026 13:45

Dismissing reviews

@entityBot entityBot left a comment

Copy link
Copy Markdown
Collaborator

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-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.bytes.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.bytes.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 38, unexpected 'sum(oci.service.gateway.bytes.from'
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'sum(oci.service.gateway.bytes.from.service)' - Exception: The NRQL validator was not able to parse the selection.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.sgw.drops.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.sgw.drops.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 42, unexpected 'sum(oci.service.gateway.sgw.drops.from'
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'sum(oci.service.gateway.sgw.drops.from.service)' - Exception: The NRQL validator was not able to parse the selection.
  • We don't think these changes require an API Review Board (ARB) review, so it is not required to merge this PR. Note that all API changes do require one: if you believe this PR needs an ARB review, please create the ticket and add the ARB:pending label. Reach #api-review-board in case of doubts.

@entityBot
entityBot requested review from a team and removed request for a team July 23, 2026 13:45
@aprasad-sketch
aprasad-sketch requested a review from entityBot July 23, 2026 13:46
@entityBot
entityBot dismissed their stale review July 23, 2026 13:46

Let's validate those changes.

@entityBot entityBot left a comment

Copy link
Copy Markdown
Collaborator

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-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.bytes.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.bytes.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 38, unexpected 'sum(oci.service.gateway.bytes.from'
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'sum(oci.service.gateway.bytes.from.service)' - Exception: The NRQL validator was not able to parse the selection.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.sgw.drops.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'SELECT sum(oci.service.gateway.sgw.drops.from.service) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 42, unexpected 'sum(oci.service.gateway.sgw.drops.from'
  • Error VALIDATING domainType: 'INFRA-OCISERVICEGATEWAY' on Golden metrics for key 'sum(oci.service.gateway.sgw.drops.from.service)' - Exception: The NRQL validator was not able to parse the selection.
  • We don't think these changes require an API Review Board (ARB) review, so it is not required to merge this PR. Note that all API changes do require one: if you believe this PR needs an ARB review, please create the ticket and add the ARB:pending label. Reach #api-review-board in case of doubts.

The 'from' segment in oci.service.gateway.bytes.from.service and
oci.service.gateway.sgw.drops.from.service is parsed as the NRQL reserved
FROM keyword, failing golden-metric validation. Wrap all metric names in
backticks so the parser treats them as identifiers.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@entityBot entityBot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We don't think these changes require an API Review Board (ARB) review, so it is not required to merge this PR. Note that all API changes do require one: if you believe this PR needs an ARB review, please create the ticket and add the ARB:pending label. Reach #api-review-board in case of doubts.

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.

3 participants