Skip to content

Commit

Permalink
Revert "Fix azure golden metrics (#214)" (#227)
Browse files Browse the repository at this point in the history
This reverts commit d131e64.
  • Loading branch information
jlegoff authored May 27, 2021
1 parent 318984a commit 3db1b41
Show file tree
Hide file tree
Showing 28 changed files with 503 additions and 1,089 deletions.
48 changes: 15 additions & 33 deletions definitions/infra-azureapimanagementservice/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
requests:
title: Requests
queries:
aws:
select: sum(azure.apimanagement.service.TotalRequests)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(totalRequests.Total)
from: AzureApiManagementServiceSample
eventId: entityGuid
eventName: entityName
query:
select: sum(totalRequests.Total)
from: AzureApiManagementServiceSample
eventId: entityGuid
eventName: entityName
averageResponseTime:
title: Average response time (ms)
queries:
aws:
select: average(azure.apimanagement.service.Duration)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(durationMilliseconds.Average)
from: AzureApiManagementServiceSample
eventId: entityGuid
eventName: entityName
query:
select: average(durationMilliseconds.Average)
from: AzureApiManagementServiceSample
eventId: entityGuid
eventName: entityName
capacityPercent:
title: Capacity (%)
queries:
aws:
select: average(azure.apimanagement.service.Capacity)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(capacityPercent.Average)
from: AzureApiManagementServiceSample
eventId: entityGuid
eventName: entityName
query:
select: average(capacityPercent.Average)
from: AzureApiManagementServiceSample
eventId: entityGuid
eventName: entityName
128 changes: 40 additions & 88 deletions definitions/infra-azureapplicationgateway/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,104 +1,56 @@
throughputBps:
title: Throughput (Bps)
queries:
aws:
select: average(azure.network.applicationgateways.Throughput)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(throughputBytesPerSecond.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: average(throughputBytesPerSecond.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
succesfulRequests:
title: Succesful requests
queries:
aws:
select: sum(azure.network.applicationgateways.TotalRequests)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(totalRequests.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: sum(totalRequests.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
failedRequests:
title: Failed requests
queries:
aws:
select: sum(azure.network.applicationgateways.FailedRequests)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(failedRequests.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: sum(failedRequests.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
cpuUtilization:
title: CPU utilization (%)
queries:
aws:
select: average(azure.network.applicationgateways.CpuUtilization)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(cpuUtilizationPercent.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: average(cpuUtilizationPercent.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
outboundTrafficB:
title: Outbound traffic (B)
queries:
aws:
select: sum(azure.network.applicationgateways.BytesSent)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(bytesSentBytes.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: sum(bytesSentBytes.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
inboundTrafficB:
title: Inbound traffic (B)
queries:
aws:
select: sum(azure.network.applicationgateways.BytesReceived)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(bytesReceivedBytes.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: sum(bytesReceivedBytes.Total)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
rttMs:
title: RTT (ms)
queries:
aws:
select: average(azure.network.applicationgateways.ClientRtt)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(clientRttMilliseconds.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: average(clientRttMilliseconds.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
responseTimeMs:
title: Response time (ms)
queries:
aws:
select: average(azure.network.applicationgateways.ApplicationGatewayTotalTime)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(applicationGatewayTotalTimeMilliseconds.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
query:
select: average(applicationGatewayTotalTimeMilliseconds.Average)
from: AzureApplicationGatewaySample
eventId: entityGuid
eventName: entityName
48 changes: 15 additions & 33 deletions definitions/infra-azureappservicewebapp/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
requests:
title: Requests
queries:
aws:
select: sum(azure.web.sites.Requests)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(requests.Total)
from: AzureAppServiceWebAppSample
eventId: entityGuid
eventName: entityName
query:
select: sum(requests.Total)
from: AzureAppServiceWebAppSample
eventId: entityGuid
eventName: entityName
averageResponseTimeS:
title: Response time (s)
queries:
aws:
select: average(azure.web.sites.AverageResponseTime)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(averageResponseTimeSeconds.Average)
from: AzureAppServiceWebAppSample
eventId: entityGuid
eventName: entityName
query:
select: average(averageResponseTimeSeconds.Average)
from: AzureAppServiceWebAppSample
eventId: entityGuid
eventName: entityName
serverErrors5Xx:
title: Errors (5xx)
queries:
aws:
select: sum(azure.web.sites.Http5xx.byWebApp)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(http5xx.Total)
from: AzureAppServiceWebAppSample
eventId: entityGuid
eventName: entityName
query:
select: sum(http5xx.Total)
from: AzureAppServiceWebAppSample
eventId: entityGuid
eventName: entityName
64 changes: 20 additions & 44 deletions definitions/infra-azurecontainersinstancegroup/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,28 @@
cpuUsage:
title: CPU usage
queries:
aws:
select: average(azure.containerinstance.containergroups.CpuUsage)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(cpuUsage.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
query:
select: average(cpuUsage.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
memoryUsageBytes:
title: Memory usage (bytes)
queries:
aws:
select: average(azure.containerinstance.containergroups.MemoryUsage)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(memoryUsageBytes.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
query:
select: average(memoryUsageBytes.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
networkBytesReceivedPerSecond:
title: Network bytes received per second
queries:
aws:
select: average(azure.containerinstance.containergroups.NetworkBytesReceivedPerSecond)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(networkReceivedBytesPerSecond.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
query:
select: average(networkReceivedBytesPerSecond.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
networkBytesTransmittedPerSecond:
title: Network bytes transmitted per second
queries:
aws:
select: average(azure.containerinstance.containergroups.NetworkBytesTransmittedPerSecond)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: average(networkTransmittedBytesPerSecond.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
query:
select: average(networkTransmittedBytesPerSecond.Average)
from: AzureContainersInstanceGroupSample
eventId: entityGuid
eventName: entityName
48 changes: 15 additions & 33 deletions definitions/infra-azurecontainersmanagedcluster/golden_metrics.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,21 @@
availableCpuCores:
title: Available CPU cores
queries:
aws:
select: sum(azure.containerservice.managedclusters.kube_node_status_allocatable_cpu_cores)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(kubeNodeStatusAllocatableCpuCores.Total)
from: AzureContainersManagedClusterSample
eventId: entityGuid
eventName: entityName
query:
select: sum(kubeNodeStatusAllocatableCpuCores.Total)
from: AzureContainersManagedClusterSample
eventId: entityGuid
eventName: entityName
availableMemoryBytes:
title: Available memory (bytes)
queries:
aws:
select: sum(azure.containerservice.managedclusters.kube_node_status_allocatable_memory_bytes)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(kubeNodeStatusAllocatableMemoryBytes.Total)
from: AzureContainersManagedClusterSample
eventId: entityGuid
eventName: entityName
query:
select: sum(kubeNodeStatusAllocatableMemoryBytes.Total)
from: AzureContainersManagedClusterSample
eventId: entityGuid
eventName: entityName
podsInReadyState:
title: Pods in Ready state
queries:
aws:
select: sum(azure.containerservice.managedclusters.kube_pod_status_ready)
from: Metric
eventId: entity.guid
eventName: entity.name
awsSample:
select: sum(kubePodStatusReady.Total)
from: AzureContainersManagedClusterSample
eventId: entityGuid
eventName: entityName
query:
select: sum(kubePodStatusReady.Total)
from: AzureContainersManagedClusterSample
eventId: entityGuid
eventName: entityName
Loading

0 comments on commit 3db1b41

Please sign in to comment.