-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding goldenmetrics * Adding goldenmetrics for gcpstorabebucket * Adding goldenmetrics for gcpspannerinstance * golden metrics for gcphttploadbalancer * golden metrics for gcpcloudfunction * goldenmetrics definition & summary for gcpstoragebucket * definition for goldenmetrics for gcpspannerinstance * goldenmetrics definition and summary metrics for gcpinternalloadbalancer * fix golden_metrics file for gcpstoragebucket * goldenmetrics ¡& summaryMetric changes for gcpbigquerytable * goldenmetrics &summary metrics changes for gcpbigquerydataset * goldenmetrics added for gcpappengineservice * added sessions to goldenmetrics in gcpspannerinstance * fix goldenmetrics for gcphttploadbalancer * fix goldenmetrics for gcpappengineservice * added instances to summary_metrics of gcpappengineservice * fix definitions for gcpbigquerydataset * fix definition for gcpappengineservice * fix definition for gcpbigquerytable * fix definition for gcpcloudfunction * fix definition gcpappengineservice * fix definition gcpbigquerydataset * fix definition gcpbigquerytable * fix definition gcpcloudfunction * fix definition for gcpinternalloadbalancer * fix definition gcpspannerinstance * fix definition gcpstoragebucket * fix definition gcpstoragebucket * fix definition for gcpspannerinstance * fix definition gcpinternalloadbalancer * fix definition for gcphttploadbalancer * fix definition for gcpcloudsql * fix definition gcphttploadbalancer * fix definition gcpcloudfunction * fix definition gcpbigquerytable * fix definition gcpbigquerydataset * fix definition gcpappengineservice * fix definition gcpspannerdatabase * fix goldenmetrics gcpspannerinstance * fix defnition for gcpspannerdatabase Co-authored-by: fprats <fprats.newrelic.com>
- Loading branch information
Showing
24 changed files
with
277 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
domain: INFRA | ||
type: GCPAPPENGINESERVICE | ||
goldenTags: | ||
- gcp.projectId | ||
- gcp.zone | ||
compositeMetrics: | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
goldenMetrics: | ||
- golden_metrics.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Instances: | ||
title: Number of instances | ||
query: | ||
select: max(`system.Instances`) | ||
from: GcpAppEngineServiceSample | ||
facet: entityName | ||
eventId: entityGuid | ||
Responses: | ||
title: Number of http responses | ||
query: | ||
select: sum(`server.Responses`) | ||
from: GcpAppEngineServiceSample | ||
facet: entityName | ||
eventId: entityGuid | ||
ErrorRate: | ||
title: Error rate | ||
query: | ||
select: filter(sum(`server.Responses`), WHERE response_code NOT LIKE '2%') * 100 | ||
from: GcpAppEngineServiceSample | ||
facet: entityName | ||
eventId: entityGuid | ||
latency: | ||
title: Latency | ||
query: | ||
select: (average(`server.ResponseLatenciesMilliseconds`)) / 1000 | ||
from: GcpAppEngineServiceSample | ||
facet: entityName | ||
eventId: entityGuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
domain: INFRA | ||
type: GCPBIGQUERYDATASET | ||
goldenTags: | ||
- gcp.projectId | ||
- gcp.zone | ||
compositeMetrics: | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
goldenMetrics: | ||
- golden_metrics.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
storedBytes: | ||
title: Stored bytes | ||
query: | ||
select: sum(`storage.StoredBytes`) | ||
from: GcpBigQueryDatasetSample | ||
facet: entityName | ||
eventId: entityGuid | ||
tables: | ||
title: Number of Tables | ||
query: | ||
select: sum(`storage.Tables`) | ||
from: GcpBigQueryDatasetSample | ||
facet: entityName | ||
eventId: entityGuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
domain: INFRA | ||
type: GCPBIGQUERYTABLE | ||
goldenTags: | ||
- gcp.projectId | ||
- gcp.zone | ||
compositeMetrics: | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
goldenMetrics: | ||
- golden_metrics.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
uploadedBytes: | ||
title: Uploaded bytes | ||
query: | ||
select: sum(`storage.UploadedBytes`) | ||
from: GcpBigQueryTableSample | ||
facet: entityName | ||
eventId: entityGuid | ||
uploadedRows: | ||
title: Uploaded Rows | ||
query: | ||
select: sum(`storage.UploadedRowCount`) | ||
from: GcpBigQueryTableSample | ||
facet: entityName | ||
eventId: entityGuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
domain: INFRA | ||
type: GCPCLOUDFUNCTION | ||
|
||
goldenTags: | ||
- gcp.projectId | ||
- gcp.zone | ||
compositeMetrics: | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
goldenMetrics: | ||
- golden_metrics.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Executions: | ||
title: Number of function executions | ||
query: | ||
select: sum(`api.Requests`) | ||
from: GcpCloudFunctionSample | ||
facet: entityName | ||
eventId: entityGuid | ||
ErrorRate: | ||
title: Error rate | ||
query: | ||
select: filter(sum(`function.Executions`), WHERE status != 'ok') * 100 / sum(`function.Executions`) | ||
from: GcpCloudFunctionSample | ||
facet: entityName | ||
eventId: entityGuid | ||
latency: | ||
title: Latency | ||
query: | ||
select: (average(`function.ExecutionTimeNanos`)) / 1000000000 | ||
from: GcpCloudFunctionSample | ||
facet: entityName | ||
eventId: entityGuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
requests: | ||
title: Requests | ||
requestsRate: | ||
title: Requests per second | ||
query: | ||
select: sum(https.Requests) | ||
select: (rate(sum(`https.Requests`), 1 minute)) / 60 | ||
from: GcpHttpLoadBalancerSample | ||
facet: entityName | ||
eventId: entityGuid | ||
totalLatencyMs: | ||
title: Total Latency (ms) | ||
title: Total Latency | ||
query: | ||
select: average(https.TotalLatencies) | ||
select: (average(`https.TotalLatencies`)) / 1000 | ||
from: GcpHttpLoadBalancerSample | ||
facet: entityName | ||
eventId: entityGuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
domain: INFRA | ||
type: GCPINTERNALLOADBALANCER | ||
goldenTags: | ||
- gcp.projectId | ||
- gcp.zone | ||
compositeMetrics: | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
goldenMetrics: | ||
- golden_metrics.yml |
21 changes: 21 additions & 0 deletions
21
definitions/infra-gcpinternalloadbalancer/golden_metrics.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Sent: | ||
title: Sent bytes | ||
query: | ||
select: sum(`l3.internal.EgressBytes`) | ||
from: GcpInternalLoadBalancerSample | ||
facet: entityName | ||
eventId: entityGuid | ||
Received: | ||
title: Received bytes | ||
query: | ||
select: sum(`l3.internal.IngressBytes`) | ||
from: GcpInternalLoadBalancerSample | ||
facet: entityName | ||
eventId: entityGuid | ||
latency: | ||
title: Latency | ||
query: | ||
select: average(`l3.internal.RttLatencies`) / 1000 | ||
from: GcpInternalLoadBalancerSample | ||
facet: entityName | ||
eventId: entityGuid |
26 changes: 26 additions & 0 deletions
26
definitions/infra-gcpinternalloadbalancer/summary_metrics.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
providerAccountName: | ||
tag: | ||
key: providerAccountName | ||
title: GCP Account | ||
unit: STRING | ||
sent: | ||
query: | ||
eventId: entityGuid | ||
select: sum(`l3.internal.EgressBytes`) | ||
from: GcpInternalLoadBalancerSample | ||
unit: BYTES | ||
title: Sent bytes | ||
received: | ||
query: | ||
eventId: entityGuid | ||
select: sum(`l3.internal.IngressBytes`) | ||
from: GcpInternalLoadBalancerSample | ||
unit: BYTES | ||
title: Received bytes | ||
latency: | ||
query: | ||
eventId: entityGuid | ||
select: average(`l3.internal.RttLatencies`)/1000 | ||
from: GcpInternalLoadBalancerSample | ||
unit: SECONDS | ||
title: Latency |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
domain: INFRA | ||
type: GCPSPANNERINSTANCE | ||
goldenTags: | ||
- gcp.projectId | ||
- gcp.zone | ||
compositeMetrics: | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
goldenMetrics: | ||
- golden_metrics.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Nodes: | ||
title: Number of nodes | ||
query: | ||
select: latest(`instance.nodes`) | ||
from: GcpSpannerInstanceSample | ||
facet: entityName | ||
eventId: entityGuid | ||
cpuUtilization: | ||
title: Average cpu utilization | ||
query: | ||
select: average(`instance.cpu.Utilization`) | ||
from: GcpSpannerInstanceSample | ||
facet: entityName | ||
eventId: entityGuid | ||
diskUsage: | ||
title: Storage used in bytes | ||
query: | ||
select: average(`instance.storage.UsedBytes`) | ||
from: GcpSpannerInstanceSample | ||
facet: entityName | ||
eventId: entityGuid | ||
sessions: | ||
title: Sessions in use | ||
query: | ||
select: latest(`instance.sessions`) | ||
from: GcpSpannerInstanceSample | ||
facet: entityName | ||
eventId: entityGuide |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
domain: INFRA | ||
type: GCPSTORAGEBUCKET | ||
goldenTags: | ||
- gcp.projectId | ||
- gcp.zone | ||
compositeMetrics: | ||
summaryMetrics: | ||
- summary_metrics.yml | ||
goldenMetrics: | ||
- golden_metrics.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
receivedBytes: | ||
title: Received bytes | ||
query: | ||
select: sum(`network.ReceivedBytes`) | ||
from: GcpStorageBucketSample | ||
facet: entityName | ||
eventId: entityGuid | ||
sentBytes: | ||
title: Sent bytes | ||
query: | ||
select: sum(`network.SentBytes`) | ||
from: GcpStorageBucketSample | ||
facet: entityName | ||
eventId: entityGuid | ||
apiRequests: | ||
title: Number API calls | ||
query: | ||
select: sum(`api.Requests`) | ||
from: GcpStorageBucketSample | ||
facet: entityName | ||
eventId: entityGuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters