Skip to content

Commit fc8d17e

Browse files
feat: Add OCINOSQL entity definition (staging) (#3043)
Add OCI NoSQL Database entity definition with: - Entity definition with synthesis rules (identifier oci.resourceId, name oci.tableName) - Golden metrics (read/write units, read/write throttle counts) - Summary metrics - Test data - Using .stg.yml/.stg.json suffix (staging only) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 301c5af commit fc8d17e

4 files changed

Lines changed: 91 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
domain: INFRA
2+
type: OCINOSQL
3+
goldenTags:
4+
- oci.compartmentId
5+
- oci.displayName
6+
- oci.lifecycleState
7+
- oci.region
8+
- oci.tableName
9+
configuration:
10+
entityExpirationTime: DAILY
11+
alertable: true
12+
synthesis:
13+
tags:
14+
newrelic.cloudIntegrations.providerAccountName:
15+
entityTagNames: [newrelic.cloudIntegrations.providerAccountName, providerAccountName]
16+
multiValue: false
17+
rules:
18+
- ruleName: infra_ocinosql_oci_resourceId
19+
identifier: oci.resourceId
20+
name: oci.tableName
21+
legacyFeatures:
22+
overrideGuidType: true
23+
encodeIdentifierInGUID: true
24+
conditions:
25+
- attribute: oci.resourceId
26+
prefix: "ocid1.nosqltable"
27+
- attribute: oci.namespace
28+
value: "oci_nosql"
29+
ownership:
30+
primaryOwner:
31+
teamName: "Cloud Monitoring Platform"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
readUnits:
2+
title: Read Units
3+
unit: COUNT
4+
queries:
5+
oci:
6+
select: sum(oci.nosql.read.units)
7+
writeUnits:
8+
title: Write Units
9+
unit: COUNT
10+
queries:
11+
oci:
12+
select: sum(oci.nosql.write.units)
13+
readThrottleCount:
14+
title: Read Throttle Count
15+
unit: COUNT
16+
queries:
17+
oci:
18+
select: sum(oci.nosql.read.throttle.count)
19+
writeThrottleCount:
20+
title: Write Throttle Count
21+
unit: COUNT
22+
queries:
23+
oci:
24+
select: sum(oci.nosql.write.throttle.count)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
providerAccountName:
2+
tag:
3+
key: providerAccountName
4+
title: OCI account
5+
unit: STRING
6+
readUnits:
7+
goldenMetric: readUnits
8+
unit: COUNT
9+
title: Read Units
10+
writeUnits:
11+
goldenMetric: writeUnits
12+
unit: COUNT
13+
title: Write Units
14+
readThrottleCount:
15+
goldenMetric: readThrottleCount
16+
unit: COUNT
17+
title: Read Throttle Count
18+
writeThrottleCount:
19+
goldenMetric: writeThrottleCount
20+
unit: COUNT
21+
title: Write Throttle Count
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[
2+
{
3+
"oci.compartmentId": "ocid1.compartment.oc1..exampleuniqueID",
4+
"oci.namespace": "oci_nosql",
5+
"oci.region": "us-ashburn-1",
6+
"oci.resourceId": "ocid1.nosqltable.oc1.iad.exampleuniqueID",
7+
"oci.tableName": "test-nosql-table",
8+
"collector.name": "oci-metric-streams",
9+
"instrumentation.provider": "oci",
10+
"metricName": "oci.nosql.read.units",
11+
"newrelic.cloudIntegrations.providerAccountId": "69877",
12+
"newrelic.cloudIntegrations.providerAccountName": "oci_test_1",
13+
"newrelic.source": "metricAPI"
14+
}
15+
]

0 commit comments

Comments
 (0)