Skip to content

feat: Add OCINATGATEWAY entity definition (staging)#3067

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

feat: Add OCINATGATEWAY entity definition (staging)#3067
aprasad-sketch wants to merge 4 commits into
newrelic:mainfrom
aprasad-sketch:feat/oci-ocinatgateway-entity

Conversation

@aprasad-sketch

Copy link
Copy Markdown
Contributor

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

Entity Type

  • Type: INFRA-OCINATGATEWAY
  • Provider: OCI (Oracle Cloud Infrastructure)
  • Namespace: oci_nat_gateway
  • OCID prefix: ocid1.natgateway

Golden Metrics

  • BytesFromNATgw (oci.nat.gateway.bytes.from.natgw)
  • BytesToNATgw (oci.nat.gateway.bytes.to.natgw)
  • ConnectionsEstablished (oci.nat.gateway.connections.established)
  • DropsToNATgw (oci.nat.gateway.drops.to.natgw)

Metric Source

https://docs.oracle.com/en-us/iaas/Content/Network/Reference/nat-gateway-metrics.htm

Add OCI NAT 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-OCINATGATEWAY' on Golden metrics for key 'SELECT sum(oci.nat.gateway.bytes.from.natgw) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - Exception: Error validating the query.
  • Error VALIDATING domainType: 'INFRA-OCINATGATEWAY' on Golden metrics for key 'SELECT sum(oci.nat.gateway.bytes.from.natgw) FROM Metric WHERE entity.guid IN ('guid') FACET entity.name TIMESERIES' - analytics.nrql.parser.DiracParserException: Error at line 1 position 34, unexpected 'sum(oci.nat.gateway.bytes.from'
  • Error VALIDATING domainType: 'INFRA-OCINATGATEWAY' on Golden metrics for key 'sum(oci.nat.gateway.bytes.from.natgw)' - 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:05
@mborroni

Copy link
Copy Markdown
Contributor

Hi @aprasad-sketch, could you please review the Entity Bot validation errors? thanks!

The NR metric names contain 'from'/'to' as dotted segments (e.g.
oci.nat.gateway.bytes.from.natgw), which are reserved NRQL keywords and
fail golden-metric query validation when unquoted. Backtick the metric
names in each select, matching the dotted-lowercase precedent set by
infra-gcprouternatgateway.

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.

@entityBot
entityBot requested review from a team and removed request for a team July 23, 2026 13:39

@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.

@aprasad-sketch
aprasad-sketch requested a review from entityBot July 23, 2026 13:42

@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.

@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.

4 participants