diff --git a/definitions/infra-awsalb/golden_metrics.yml b/definitions/infra-awsalb/golden_metrics.yml index ce22935e1..0df80cfeb 100644 --- a/definitions/infra-awsalb/golden_metrics.yml +++ b/definitions/infra-awsalb/golden_metrics.yml @@ -1,42 +1,25 @@ serverErrors4XxAnd5Xx: title: Server errors (4xx and 5xx) - queries: - aws: - select: rate(sum(aws.applicationelb.HTTPCode_ELB_4XX_Count) + sum(aws.applicationelb.HTTPCode_ELB_5XX_Count), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum((provider.httpCodeElb4XXCount.Sum OR 0) + (provider.httpCodeElb5XXCount.Sum OR 0)),1 minute) - from: LoadBalancerSample - where: provider='Alb' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum((provider.httpCodeElb4XXCount.Sum OR 0) + (provider.httpCodeElb5XXCount.Sum OR 0)),1 + minute) + from: LoadBalancerSample + where: provider='Alb' + eventId: entityGuid + eventName: entityName activeConnections: title: Active Connections - queries: - aws: - select: rate(sum(aws.applicationelb.ActiveConnectionCount), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.activeConnectionCount.Sum),1 minute) - from: LoadBalancerSample - where: provider='Alb' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.activeConnectionCount.Sum),1 minute) + from: LoadBalancerSample + where: provider='Alb' + eventId: entityGuid + eventName: entityName rejectedConnections: title: Rejected connections - queries: - aws: - select: rate(sum(aws.applicationelb.RejectedConnectionCount), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.rejectedConnectionCount.Sum),1 minute) - from: LoadBalancerSample - where: provider='Alb' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.rejectedConnectionCount.Sum),1 minute) + from: LoadBalancerSample + where: provider='Alb' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsalbtargetgroup/golden_metrics.yml b/definitions/infra-awsalbtargetgroup/golden_metrics.yml index fabdcbb29..7203d1edb 100644 --- a/definitions/infra-awsalbtargetgroup/golden_metrics.yml +++ b/definitions/infra-awsalbtargetgroup/golden_metrics.yml @@ -1,56 +1,33 @@ serverErrors4XxAnd5Xx: title: Server errors (4xx and 5xx) - queries: - aws: - select: rate(sum(aws.applicationelb.HTTPCode_Target_4XX_Count) + sum(aws.applicationelb.HTTPCode_Target_5XX_Count), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.httpCodeTarget4XXCount.Sum`) + sum(`provider.httpCodeTarget5XXCount.Sum`),1 minute) - from: LoadBalancerSample - where: provider='AlbTargetGroup' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.httpCodeTarget4XXCount.Sum`) + sum(`provider.httpCodeTarget5XXCount.Sum`),1 + minute) + from: LoadBalancerSample + where: provider='AlbTargetGroup' + eventId: entityGuid + eventName: entityName unhealthyHosts: title: Unhealthy host count - queries: - aws: - select: max(aws.applicationelb.UnHealthyHostCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.unHealthyHostCount.Maximum`) - from: LoadBalancerSample - where: provider='AlbTargetGroup' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.unHealthyHostCount.Maximum`) + from: LoadBalancerSample + where: provider='AlbTargetGroup' + eventId: entityGuid + eventName: entityName responseTime: title: Average response time - queries: - aws: - select: average(aws.applicationelb.TargetResponseTime) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.targetResponseTime.Average`) - from: LoadBalancerSample - where: provider='AlbTargetGroup' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.targetResponseTime.Average`) + from: LoadBalancerSample + where: provider='AlbTargetGroup' + eventId: entityGuid + eventName: entityName requests: title: Requests - queries: - aws: - select: rate(sum(aws.applicationelb.RequestCountPerTarget), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.requestCountPerTarget.Sum),1 minute) - from: LoadBalancerSample - where: provider='AlbTargetGroup' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.requestCountPerTarget.Sum),1 minute) + from: LoadBalancerSample + where: provider='AlbTargetGroup' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsapigatewayapi/golden_metrics.yml b/definitions/infra-awsapigatewayapi/golden_metrics.yml index 5b571fa47..c24fa60db 100644 --- a/definitions/infra-awsapigatewayapi/golden_metrics.yml +++ b/definitions/infra-awsapigatewayapi/golden_metrics.yml @@ -1,42 +1,24 @@ requests: title: Requests - queries: - aws: - select: sum(aws.apigateway.Count.byApi) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.count.SampleCount) - from: ApiGatewaySample - where: provider='ApiGatewayApi' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.count.SampleCount) + from: ApiGatewaySample + where: provider='ApiGatewayApi' + eventId: entityGuid + eventName: entityName errors4XxAnd5Xx: title: Errors (4xx and 5xx) - queries: - aws: - select: sum(`aws.apigateway.5XXError.byApi`) + sum(`aws.apigateway.4XXError.byApi`) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum((`provider.5xxError.Sum` OR 0) + (`provider.4xxError.Sum` OR 0)) - from: ApiGatewaySample - where: provider='ApiGatewayApi' - eventId: entityGuid - eventName: entityName + query: + select: sum((`provider.5xxError.Sum` OR 0) + (`provider.4xxError.Sum` OR 0)) + from: ApiGatewaySample + where: provider='ApiGatewayApi' + eventId: entityGuid + eventName: entityName latencyMs: title: Latency (ms) - queries: - aws: - select: average(aws.apigateway.Latency.byApi) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.latency.Average) - from: ApiGatewaySample - where: provider='ApiGatewayApi' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.latency.Average) + from: ApiGatewaySample + where: provider='ApiGatewayApi' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsapigatewayresourcewithmetrics/golden_metrics.yml b/definitions/infra-awsapigatewayresourcewithmetrics/golden_metrics.yml index 69c76fcbd..a4038b6d9 100644 --- a/definitions/infra-awsapigatewayresourcewithmetrics/golden_metrics.yml +++ b/definitions/infra-awsapigatewayresourcewithmetrics/golden_metrics.yml @@ -1,42 +1,24 @@ requests: title: Requests - queries: - aws: - select: sum(aws.apigateway.Count.byApi) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.count.SampleCount) - from: ApiGatewaySample - where: provider='ApiGatewayResourceWithMetrics' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.count.SampleCount) + from: ApiGatewaySample + where: provider='ApiGatewayResourceWithMetrics' + eventId: entityGuid + eventName: entityName errors4XxAnd5Xx: title: Errors (4xx and 5xx) - queries: - aws: - select: sum(`aws.apigateway.5XXError.byApi`) + sum(`aws.apigateway.4XXError.byApi`) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum((`provider.5xxError.Sum` OR 0) + (`provider.4xxError.Sum` OR 0)) - from: ApiGatewaySample - where: provider='ApiGatewayResourceWithMetrics' - eventId: entityGuid - eventName: entityName + query: + select: sum((`provider.5xxError.Sum` OR 0) + (`provider.4xxError.Sum` OR 0)) + from: ApiGatewaySample + where: provider='ApiGatewayResourceWithMetrics' + eventId: entityGuid + eventName: entityName latencyMs: title: Latency (ms) - queries: - aws: - select: average(aws.apigateway.Latency.byApi) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.latency.Average) - from: ApiGatewaySample - where: provider='ApiGatewayResourceWithMetrics' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.latency.Average) + from: ApiGatewaySample + where: provider='ApiGatewayResourceWithMetrics' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsapigatewaystage/golden_metrics.yml b/definitions/infra-awsapigatewaystage/golden_metrics.yml index e9ba4cdeb..7977d7d78 100644 --- a/definitions/infra-awsapigatewaystage/golden_metrics.yml +++ b/definitions/infra-awsapigatewaystage/golden_metrics.yml @@ -1,42 +1,24 @@ requests: title: Requests - queries: - aws: - select: sum(aws.apigateway.Count.byApi) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.count.SampleCount) - from: ApiGatewaySample - where: provider='ApiGatewayStage' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.count.SampleCount) + from: ApiGatewaySample + where: provider='ApiGatewayStage' + eventId: entityGuid + eventName: entityName errors4XxAnd5Xx: title: Errors (4xx and 5xx) - queries: - aws: - select: sum(`aws.apigateway.4XXError.byApi`) + sum(`aws.apigateway.5XXError.byApi`) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum((`provider.4xxError.Sum` OR 0) + (`provider.5xxError.Sum` OR 0)) - from: ApiGatewaySample - where: provider='ApiGatewayStage' - eventId: entityGuid - eventName: entityName + query: + select: sum((`provider.4xxError.Sum` OR 0) + (`provider.5xxError.Sum` OR 0)) + from: ApiGatewaySample + where: provider='ApiGatewayStage' + eventId: entityGuid + eventName: entityName latencyMs: title: Latency (ms) - queries: - aws: - select: average(aws.apigateway.Latency.byApi) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.latency.Average) - from: ApiGatewaySample - where: provider='ApiGatewayStage' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.latency.Average) + from: ApiGatewaySample + where: provider='ApiGatewayStage' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsautoscalinggroup/golden_metrics.yml b/definitions/infra-awsautoscalinggroup/golden_metrics.yml index 2018529d5..143fc7827 100644 --- a/definitions/infra-awsautoscalinggroup/golden_metrics.yml +++ b/definitions/infra-awsautoscalinggroup/golden_metrics.yml @@ -1,42 +1,24 @@ desiredInstances: title: Desired instances - queries: - aws: - select: max(aws.autoscaling.GroupDesiredCapacity) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.groupDesiredCapacity.Maximum) - from: AutoScalingGroupSample - where: provider='AutoScalingGroup' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.groupDesiredCapacity.Maximum) + from: AutoScalingGroupSample + where: provider='AutoScalingGroup' + eventId: entityGuid + eventName: entityName inServiceInstances: title: In service instances - queries: - aws: - select: min(aws.autoscaling.GroupInServiceInstances) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: min(provider.groupInServiceInstances.Minimum) - from: AutoScalingGroupSample - where: provider='AutoScalingGroup' - eventId: entityGuid - eventName: entityName + query: + select: min(provider.groupInServiceInstances.Minimum) + from: AutoScalingGroupSample + where: provider='AutoScalingGroup' + eventId: entityGuid + eventName: entityName pendingInstances: title: Pending instances - queries: - aws: - select: max(aws.autoscaling.GroupStandbyInstances) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.groupStandbyInstances.Maximum) - from: AutoScalingGroupSample - where: provider='AutoScalingGroup' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.groupStandbyInstances.Maximum) + from: AutoScalingGroupSample + where: provider='AutoScalingGroup' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awscloudfrontdistribution/golden_metrics.yml b/definitions/infra-awscloudfrontdistribution/golden_metrics.yml index ee3a00893..6b6a986e9 100644 --- a/definitions/infra-awscloudfrontdistribution/golden_metrics.yml +++ b/definitions/infra-awscloudfrontdistribution/golden_metrics.yml @@ -1,56 +1,32 @@ requests: title: Requests - queries: - aws: - select: sum(aws.cloudfront.Requests) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.requests.Sum) - from: LoadBalancerSample - where: provider='CloudFrontDistribution' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.requests.Sum) + from: LoadBalancerSample + where: provider='CloudFrontDistribution' + eventId: entityGuid + eventName: entityName totalErrorRate: title: Total error rate - queries: - aws: - select: average(aws.cloudfront.TotalErrorRate) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.totalErrorRate.Average) - from: LoadBalancerSample - where: provider='CloudFrontDistribution' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.totalErrorRate.Average) + from: LoadBalancerSample + where: provider='CloudFrontDistribution' + eventId: entityGuid + eventName: entityName bytesUploaded: title: Uploaded bytes - queries: - aws: - select: sum(aws.cloudfront.BytesUploaded) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.bytesUploaded.Sum) - from: LoadBalancerSample - where: provider='CloudFrontDistribution' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.bytesUploaded.Sum) + from: LoadBalancerSample + where: provider='CloudFrontDistribution' + eventId: entityGuid + eventName: entityName bytesDownloaded: title: Downloaded bytes - queries: - aws: - select: sum(aws.cloudfront.BytesDownloaded) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.bytesDownloaded.Sum) - from: LoadBalancerSample - where: provider='CloudFrontDistribution' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.bytesDownloaded.Sum) + from: LoadBalancerSample + where: provider='CloudFrontDistribution' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsdocdbcluster/golden_metrics.yml b/definitions/infra-awsdocdbcluster/golden_metrics.yml index f7478a710..bca0be66a 100644 --- a/definitions/infra-awsdocdbcluster/golden_metrics.yml +++ b/definitions/infra-awsdocdbcluster/golden_metrics.yml @@ -1,84 +1,56 @@ +# Important metrics are listed here: +# https://docs.aws.amazon.com/documentdb/latest/developerguide/monitoring_docdb.html cpuUsage: title: CPU usage - queries: - aws: - select: average(aws.docdb.CPUUtilization.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbCluster' + eventId: entityGuid + eventName: entityName + unit: PERCENTAGE databaseConnections: title: Database connections - queries: - aws: - select: average(aws.docdb.DatabaseConnections.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.databaseConnections.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.databaseConnections.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbCluster' + eventId: entityGuid + eventName: entityName + unit: COUNT volumeBytesUsed: title: Storage consumption - queries: - aws: - select: average(aws.docdb.VolumeBytesUsed.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeBytesUsed.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeBytesUsed.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbCluster' + eventId: entityGuid + eventName: entityName + unit: BYTES networkThroughput: title: Network throughput - queries: - aws: - select: average(aws.docdb.NetworkThroughput.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.networkThroughput.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.networkThroughput.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbCluster' + eventId: entityGuid + eventName: entityName + unit: BYTES_PER_SECOND writeIops: title: Write IOPS - queries: - aws: - select: average(aws.docdb.WriteIOPS.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.writeIOPS.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.writeIOPS.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbCluster' + eventId: entityGuid + eventName: entityName + unit: OPERATIONS_PER_SECOND readIopos: title: Read IOPS - queries: - aws: - select: average(aws.docdb.ReadIOPS.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.readIOPS.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.readIOPS.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbCluster' + eventId: entityGuid + eventName: entityName + unit: OPERATIONS_PER_SECOND diff --git a/definitions/infra-awsdocdbclusterbyrole/golden_metrics.yml b/definitions/infra-awsdocdbclusterbyrole/golden_metrics.yml index 46deb3bd2..2dd7cc696 100644 --- a/definitions/infra-awsdocdbclusterbyrole/golden_metrics.yml +++ b/definitions/infra-awsdocdbclusterbyrole/golden_metrics.yml @@ -1,84 +1,56 @@ +# Important metrics are listed here: +# https://docs.aws.amazon.com/documentdb/latest/developerguide/monitoring_docdb.html cpuUsage: title: CPU usage - queries: - aws: - select: average(aws.docdb.CPUUtilization.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbClusterByRole' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbClusterByRole' + eventId: entityGuid + eventName: entityName + unit: PERCENTAGE databaseConnections: title: Database connections - queries: - aws: - select: average(aws.docdb.DatabaseConnections.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.databaseConnections.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbClusterByRole' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.databaseConnections.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbClusterByRole' + eventId: entityGuid + eventName: entityName + unit: COUNT volumeBytesUsed: title: Storage consumption - queries: - aws: - select: average(aws.docdb.VolumeBytesUsed.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeBytesUsed.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbClusterByRole' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeBytesUsed.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbClusterByRole' + eventId: entityGuid + eventName: entityName + unit: BYTES networkThroughput: title: Network throughput - queries: - aws: - select: average(aws.docdb.NetworkThroughput.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.networkThroughput.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbClusterByRole' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.networkThroughput.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbClusterByRole' + eventId: entityGuid + eventName: entityName + unit: BYTES_PER_SECOND writeIops: title: Write IOPS - queries: - aws: - select: average(aws.docdb.WriteIOPS.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.writeIOPS.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbClusterByRole' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.writeIOPS.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbClusterByRole' + eventId: entityGuid + eventName: entityName + unit: OPERATIONS_PER_SECOND readIopos: title: Read IOPS - queries: - aws: - select: average(aws.docdb.ReadIOPS.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.readIOPS.Average) - from: AwsDocDbClusterSample - where: provider='AwsDocDbClusterByRole' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.readIOPS.Average) + from: AwsDocDbClusterSample + where: provider='AwsDocDbClusterByRole' + eventId: entityGuid + eventName: entityName + unit: OPERATIONS_PER_SECOND diff --git a/definitions/infra-awsdocdbinstance/golden_metrics.yml b/definitions/infra-awsdocdbinstance/golden_metrics.yml index f745a669b..c392de7f3 100644 --- a/definitions/infra-awsdocdbinstance/golden_metrics.yml +++ b/definitions/infra-awsdocdbinstance/golden_metrics.yml @@ -1,84 +1,56 @@ +# Important metrics are listed here: +# https://docs.aws.amazon.com/documentdb/latest/developerguide/monitoring_docdb.html cpuUsage: title: CPU usage - queries: - aws: - select: average(aws.docdb.CPUUtilization.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: AwsDocDbInstanceSample - where: provider='AwsDocDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: AwsDocDbInstanceSample + where: provider='AwsDocDbInstance' + eventId: entityGuid + eventName: entityName + unit: PERCENTAGE databaseConnections: title: Database connections - queries: - aws: - select: average(aws.docdb.DatabaseConnections.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.databaseConnections.Average) - from: AwsDocDbInstanceSample - where: provider='AwsDocDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.databaseConnections.Average) + from: AwsDocDbInstanceSample + where: provider='AwsDocDbInstance' + eventId: entityGuid + eventName: entityName + unit: COUNT volumeBytesUsed: title: Storage consumption - queries: - aws: - select: average(aws.docdb.VolumeBytesUsed.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeBytesUsed.Average) - from: AwsDocDbInstanceSample - where: provider='AwsDocDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeBytesUsed.Average) + from: AwsDocDbInstanceSample + where: provider='AwsDocDbInstance' + eventId: entityGuid + eventName: entityName + unit: BYTES networkThroughput: title: Network throughput - queries: - aws: - select: average(aws.docdb.NetworkThroughput.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.networkThroughput.Average) - from: AwsDocDbInstanceSample - where: provider='AwsDocDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.networkThroughput.Average) + from: AwsDocDbInstanceSample + where: provider='AwsDocDbInstance' + eventId: entityGuid + eventName: entityName + unit: BYTES_PER_SECOND writeIops: title: Write IOPS - queries: - aws: - select: average(aws.docdb.WriteIOPS.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.writeIOPS.Average) - from: AwsDocDbInstanceSample - where: provider='AwsDocDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.writeIOPS.Average) + from: AwsDocDbInstanceSample + where: provider='AwsDocDbInstance' + eventId: entityGuid + eventName: entityName + unit: OPERATIONS_PER_SECOND readIopos: title: Read IOPS - queries: - aws: - select: average(aws.docdb.ReadIOPS.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.readIOPS.Average) - from: AwsDocDbInstanceSample - where: provider='AwsDocDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.readIOPS.Average) + from: AwsDocDbInstanceSample + where: provider='AwsDocDbInstance' + eventId: entityGuid + eventName: entityName + unit: OPERATIONS_PER_SECOND diff --git a/definitions/infra-awsdynamodbglobalsecondaryindex/golden_metrics.yml b/definitions/infra-awsdynamodbglobalsecondaryindex/golden_metrics.yml index 58d68379a..6de1b50dd 100644 --- a/definitions/infra-awsdynamodbglobalsecondaryindex/golden_metrics.yml +++ b/definitions/infra-awsdynamodbglobalsecondaryindex/golden_metrics.yml @@ -1,56 +1,32 @@ consumedReadCapacityUnits: title: Consumed read capacity unit - queries: - aws: - select: sum(aws.dynamodb.ConsumedReadCapacityUnits.byGlobalSecondaryIndex) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.consumedReadCapacityUnits.Sum) - from: DatastoreSample - where: provider='DynamoDbGlobalSecondaryIndex' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.consumedReadCapacityUnits.Sum) + from: DatastoreSample + where: provider='DynamoDbGlobalSecondaryIndex' + eventId: entityGuid + eventName: entityName provisionedReadCapacityUnits: title: Provisioned read capacity unit - queries: - aws: - select: sum(aws.dynamodb.ProvisionedReadCapacityUnits.byGlobalSecondaryIndex) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.provisionedReadCapacityUnits.Average) - from: DatastoreSample - where: provider='DynamoDbGlobalSecondaryIndex' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.provisionedReadCapacityUnits.Average) + from: DatastoreSample + where: provider='DynamoDbGlobalSecondaryIndex' + eventId: entityGuid + eventName: entityName consumedWriteCapacityUnits: title: Consumed write capacity unit - queries: - aws: - select: sum(aws.dynamodb.ConsumedWriteCapacityUnits.byGlobalSecondaryIndex) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.consumedWriteCapacityUnits.Sum) - from: DatastoreSample - where: provider='DynamoDbGlobalSecondaryIndex' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.consumedWriteCapacityUnits.Sum) + from: DatastoreSample + where: provider='DynamoDbGlobalSecondaryIndex' + eventId: entityGuid + eventName: entityName provisionedWriteCapacityUnits: title: Provisioned write capacity unit - queries: - aws: - select: sum(aws.dynamodb.ProvisionedWriteCapacityUnits.byGlobalSecondaryIndex) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.provisionedWriteCapacityUnits.Average) - from: DatastoreSample - where: provider='DynamoDbGlobalSecondaryIndex' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.provisionedWriteCapacityUnits.Average) + from: DatastoreSample + where: provider='DynamoDbGlobalSecondaryIndex' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsdynamodbregion/golden_metrics.yml b/definitions/infra-awsdynamodbregion/golden_metrics.yml index 98717c416..2ebfa2573 100644 --- a/definitions/infra-awsdynamodbregion/golden_metrics.yml +++ b/definitions/infra-awsdynamodbregion/golden_metrics.yml @@ -1,14 +1,8 @@ systemErrors: title: System errors - queries: - aws: - select: sum(aws.dynamodb.SystemErrors.byRegion) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.systemErrors.Sum) - from: DatastoreSample - where: provider='DynamoDbRegion' - eventId: entityGuid - eventName: entityName + query: + select: sum(systemErrors.Total) + from: DatastoreSample + where: provider='DynamoDbRegion' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsdynamodbtable/golden_metrics.yml b/definitions/infra-awsdynamodbtable/golden_metrics.yml index 7c032da26..4d002bc77 100644 --- a/definitions/infra-awsdynamodbtable/golden_metrics.yml +++ b/definitions/infra-awsdynamodbtable/golden_metrics.yml @@ -1,42 +1,24 @@ readThrottledRequests: title: Read throttled requests - queries: - aws: - select: sum(aws.dynamodb.ReadThrottleEvents.byGlobalSecondaryIndex) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.readThrottleEvents.Sum) - from: DatastoreSample - where: provider='DynamoDbTable' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.readThrottleEvents.Sum) + from: DatastoreSample + where: provider='DynamoDbTable' + eventId: entityGuid + eventName: entityName writeThrottledRequests: title: Write throttled requests - queries: - aws: - select: sum(aws.dynamodb.WriteThrottleEvents.byGlobalSecondaryIndex) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.writeThrottleEvents.Sum) - from: DatastoreSample - where: provider='DynamoDbTable' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.writeThrottleEvents.Sum) + from: DatastoreSample + where: provider='DynamoDbTable' + eventId: entityGuid + eventName: entityName getitemLatencyMs: title: GetItem latency (ms) - queries: - aws: - select: average(aws.dynamodb.SuccessfulRequestLatency.get) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.getSuccessfulRequestLatency.Average) - from: DatastoreSample - where: provider='DynamoDbTable' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.getSuccessfulRequestLatency.Average) + from: DatastoreSample + where: provider='DynamoDbTable' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsebsvolume/golden_metrics.yml b/definitions/infra-awsebsvolume/golden_metrics.yml index 6b3bf248c..bf2e426f1 100644 --- a/definitions/infra-awsebsvolume/golden_metrics.yml +++ b/definitions/infra-awsebsvolume/golden_metrics.yml @@ -1,56 +1,32 @@ readAndWriteOperations: title: Read and Write Operations - queries: - aws: - select: sum(aws.ebs.VolumeReadOps) + sum(aws.ebs.VolumeWriteOps) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum((provider.volumeReadOps.Sum OR 0) + (provider.volumeWriteOps.Sum OR 0)) - from: BlockDeviceSample - where: provider='EbsVolume' - eventId: entityGuid - eventName: entityName + query: + select: sum((provider.volumeReadOps.Sum OR 0) + (provider.volumeWriteOps.Sum OR 0)) + from: BlockDeviceSample + where: provider='EbsVolume' + eventId: entityGuid + eventName: entityName readAndWriteQueueLength: title: Read and Write Queue Length - queries: - aws: - select: average(aws.ebs.VolumeQueueLength) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeQueueLength.Average) - from: BlockDeviceSample - where: provider='EbsVolume' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeQueueLength.Average) + from: BlockDeviceSample + where: provider='EbsVolume' + eventId: entityGuid + eventName: entityName averageWriteTimeMs: title: Average Write Time (ms) - queries: - aws: - select: 1000 * average(aws.ebs.VolumeTotalWriteTime) / average(aws.ebs.VolumeWriteOps) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeTotalWriteTime.Sum / provider.volumeWriteOps.Sum) * 1000 - from: BlockDeviceSample - where: provider='EbsVolume' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeTotalWriteTime.Sum / provider.volumeWriteOps.Sum) * 1000 + from: BlockDeviceSample + where: provider='EbsVolume' + eventId: entityGuid + eventName: entityName averageReadTimeMs: title: Average Read Time (ms) - queries: - aws: - select: 1000 * average(aws.ebs.VolumeTotalReadTime) / average(aws.ebs.VolumeReadOps) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeTotalReadTime.Sum / provider.volumeReadOps.Sum) * 1000 - from: BlockDeviceSample - where: provider='EbsVolume' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeTotalReadTime.Sum / provider.volumeReadOps.Sum) * 1000 + from: BlockDeviceSample + where: provider='EbsVolume' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsecscluster/golden_metrics.yml b/definitions/infra-awsecscluster/golden_metrics.yml index df7e66c7e..b15d3746d 100644 --- a/definitions/infra-awsecscluster/golden_metrics.yml +++ b/definitions/infra-awsecscluster/golden_metrics.yml @@ -1,28 +1,16 @@ cpuUsage: title: CPU usage (%) - queries: - aws: - select: average(aws.ec2.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: ComputeSample - where: provider='EcsCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: ComputeSample + where: provider='EcsCluster' + eventId: entityGuid + eventName: entityName memoryUsage: title: Memory usage (%) - queries: - aws: - select: average(aws.ecs.MemoryUtilization.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.memoryUtilization.Average) - from: ComputeSample - where: provider='EcsCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.memoryUtilization.Average) + from: ComputeSample + where: provider='EcsCluster' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsecscontainerinstance/golden_metrics.yml b/definitions/infra-awsecscontainerinstance/golden_metrics.yml index 6bdb417d8..0768c82ed 100644 --- a/definitions/infra-awsecscontainerinstance/golden_metrics.yml +++ b/definitions/infra-awsecscontainerinstance/golden_metrics.yml @@ -1,28 +1,16 @@ registeredCpu: title: Registered CPUs - queries: - aws: - select: average(aws.ecs.registeredCpu) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.registeredCpu) - from: ComputeSample - where: provider='EcsContainerInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.registeredCpu) + from: ComputeSample + where: provider='EcsContainerInstance' + eventId: entityGuid + eventName: entityName registeredMemory: title: Registered memory - queries: - aws: - select: average(aws.ecs.registeredMemory) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.registeredMemory) - from: ComputeSample - where: provider='EcsContainerInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.registeredMemory) + from: ComputeSample + where: provider='EcsContainerInstance' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsecsservice/golden_metrics.yml b/definitions/infra-awsecsservice/golden_metrics.yml index 3ca5221b1..074e30f1f 100644 --- a/definitions/infra-awsecsservice/golden_metrics.yml +++ b/definitions/infra-awsecsservice/golden_metrics.yml @@ -1,28 +1,16 @@ cpuUsage: title: CPU usage (%) - queries: - aws: - select: average(aws.ec2.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: ComputeSample - where: provider='EcsService' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: ComputeSample + where: provider='EcsService' + eventId: entityGuid + eventName: entityName memoryUsage: title: Memory usage (%) - queries: - aws: - select: average(aws.ecs.MemoryUtilization.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.memoryUtilization.Average) - from: ComputeSample - where: provider='EcsService' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.memoryUtilization.Average) + from: ComputeSample + where: provider='EcsService' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsefsfilesystem/golden_metrics.yml b/definitions/infra-awsefsfilesystem/golden_metrics.yml index 15da48234..f5dce43fa 100644 --- a/definitions/infra-awsefsfilesystem/golden_metrics.yml +++ b/definitions/infra-awsefsfilesystem/golden_metrics.yml @@ -1,56 +1,32 @@ iops: title: Total I/O (Bytes per sec) - queries: - aws: - select: rate(sum(aws.efs.TotalIOBytes), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.totalIOBytes.Sum`), 1 second) - from: BlockDeviceSample - where: provider='EfsFileSystem' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.totalIOBytes.Sum`), 1 second) + from: BlockDeviceSample + where: provider='EfsFileSystem' + eventId: entityGuid + eventName: entityName iolimit: title: I/O limit (%) - queries: - aws: - select: max(aws.efs.PercentIOLimit) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.percentIOLimit.Maximum`) - from: BlockDeviceSample - where: provider='EfsFileSystem' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.percentIOLimit.Maximum`) + from: BlockDeviceSample + where: provider='EfsFileSystem' + eventId: entityGuid + eventName: entityName clientConnections: title: Client Connections - queries: - aws: - select: sum(aws.efs.ClientConnections) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.clientConnections.Sum`) - from: BlockDeviceSample - where: provider='EfsFileSystem' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.clientConnections.Sum`) + from: BlockDeviceSample + where: provider='EfsFileSystem' + eventId: entityGuid + eventName: entityName burstCreditBalance: title: Burst Credit Balance - queries: - aws: - select: average(aws.efs.BurstCreditBalance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.burstCreditBalance.Average`) - from: BlockDeviceSample - where: provider='EfsFileSystem' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.burstCreditBalance.Average`) + from: BlockDeviceSample + where: provider='EfsFileSystem' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awselasticachememcachedcluster/golden_metrics.yml b/definitions/infra-awselasticachememcachedcluster/golden_metrics.yml index 4b058a70b..71f67f965 100644 --- a/definitions/infra-awselasticachememcachedcluster/golden_metrics.yml +++ b/definitions/infra-awselasticachememcachedcluster/golden_metrics.yml @@ -1,70 +1,40 @@ cpuUtilization: title: CPU utilization (%) - queries: - aws: - select: average(aws.rds.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: DatastoreSample - where: provider='ElastiCacheMemcachedCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: DatastoreSample + where: provider='ElastiCacheMemcachedCluster' + eventId: entityGuid + eventName: entityName swapUsageBytes: title: Swap usage (bytes) - queries: - aws: - select: average(aws.elasticache.SwapUsage.byMemcachedCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.swapUsage.Average`) - from: DatastoreSample - where: provider='ElastiCacheMemcachedCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.swapUsage.Average`) + from: DatastoreSample + where: provider='ElastiCacheMemcachedCluster' + eventId: entityGuid + eventName: entityName freeableMemory: title: Free memory (bytes) - queries: - aws: - select: average(aws.elasticache.FreeableMemory.byMemcachedCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.freeableMemory.Average`) - from: DatastoreSample - where: provider='ElastiCacheMemcachedCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.freeableMemory.Average`) + from: DatastoreSample + where: provider='ElastiCacheMemcachedCluster' + eventId: entityGuid + eventName: entityName networkBytesIn: title: Bytes in per sec - queries: - aws: - select: rate(sum(aws.elasticache.NetworkBytesIn.byMemcachedCluster), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.networkBytesIn.Sum`), 1 second) - from: DatastoreSample - where: provider='ElastiCacheMemcachedCluster' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.networkBytesIn.Sum`), 1 second) + from: DatastoreSample + where: provider='ElastiCacheMemcachedCluster' + eventId: entityGuid + eventName: entityName networkBytesOut: title: Bytes out per sec - queries: - aws: - select: rate(sum(aws.elasticache.NetworkBytesOut.byMemcachedCluster), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.networkBytesOut.Sum`), 1 second) - from: DatastoreSample - where: provider='ElastiCacheMemcachedCluster' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.networkBytesOut.Sum`), 1 second) + from: DatastoreSample + where: provider='ElastiCacheMemcachedCluster' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awselasticachememcachednode/golden_metrics.yml b/definitions/infra-awselasticachememcachednode/golden_metrics.yml index dc3c6af31..e920f80fa 100644 --- a/definitions/infra-awselasticachememcachednode/golden_metrics.yml +++ b/definitions/infra-awselasticachememcachednode/golden_metrics.yml @@ -1,84 +1,48 @@ getThroughput: title: Gets per sec - queries: - aws: - select: rate(sum(aws.elasticache.GetHits) + sum(aws.elasticache.GetMisses), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.getHits.Sum) + sum(provider.getMisses.Sum), 1 second) - from: DatastoreSample - where: provider='ElastiCacheMemcachedNode' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.getHits.Sum)+sum(provider.getMisses.Sum), 1 second) + from: DatastoreSample + where: provider='ElastiCacheMemcachedNode' + eventId: entityGuid + eventName: entityName getMisses: title: Get hit rate (%) - queries: - aws: - select: (sum(aws.elasticache.GetHits) / (sum(aws.elasticache.GetHits) + sum(aws.elasticache.GetMisses))) * 100 - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: (sum(provider.getHits.Sum) / (sum(provider.getHits.Sum) + sum(provider.getMisses.Sum))) * 100 - from: DatastoreSample - where: provider='ElastiCacheMemcachedNode' - eventId: entityGuid - eventName: entityName + query: + select: (sum(provider.getHits.Sum)/(sum(provider.getHits.Sum)+sum(provider.getMisses.Sum)))*100 + from: DatastoreSample + where: provider='ElastiCacheMemcachedNode' + eventId: entityGuid + eventName: entityName evictedItems: title: Evicted items per sec - queries: - aws: - select: rate(sum(aws.elasticache.Evictions.byMemcachedNode), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.evictions.Sum`), 1 second) - from: DatastoreSample - where: provider='ElastiCacheMemcachedNode' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.evictions.Sum`), 1 second) + from: DatastoreSample + where: provider='ElastiCacheMemcachedNode' + eventId: entityGuid + eventName: entityName swapUsage: title: Swap Usage - queries: - aws: - select: average(aws.elasticache.SwapUsage.byMemcachedCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.swapUsage.Average`) - from: DatastoreSample - where: provider='ElastiCacheMemcachedNode' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.swapUsage.Average`) + from: DatastoreSample + where: provider='ElastiCacheMemcachedNode' + eventId: entityGuid + eventName: entityName cpuUtilization: title: CPU utilization (%) - queries: - aws: - select: average(aws.rds.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: DatastoreSample - where: provider='ElastiCacheMemcachedNode' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: DatastoreSample + where: provider='ElastiCacheMemcachedNode' + eventId: entityGuid + eventName: entityName currentConnections: title: Current connections - queries: - aws: - select: average(aws.elasticache.CurrConnections.byMemcachedNode) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.currConnections.Average`) - from: DatastoreSample - where: provider='ElastiCacheMemcachedNode' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.currConnections.Average`) + from: DatastoreSample + where: provider='ElastiCacheMemcachedNode' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awselasticacherediscluster/golden_metrics.yml b/definitions/infra-awselasticacherediscluster/golden_metrics.yml index 25a828a36..d622b86a5 100644 --- a/definitions/infra-awselasticacherediscluster/golden_metrics.yml +++ b/definitions/infra-awselasticacherediscluster/golden_metrics.yml @@ -1,84 +1,48 @@ cpuUtilization: title: CPU utilization (%) - queries: - aws: - select: average(aws.rds.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: DatastoreSample - where: provider='ElastiCacheRedisCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: DatastoreSample + where: provider='ElastiCacheRedisCluster' + eventId: entityGuid + eventName: entityName engineCpuUtilization: title: Engine CPU utilization (%) - queries: - aws: - select: average(aws.elasticache.EngineCPUUtilization.byRedisCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.engineCpuUtilization.Average) - from: DatastoreSample - where: provider='ElastiCacheRedisCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.engineCpuUtilization.Average) + from: DatastoreSample + where: provider='ElastiCacheRedisCluster' + eventId: entityGuid + eventName: entityName swapUsageBytes: title: Swap usage (bytes) - queries: - aws: - select: average(aws.elasticache.SwapUsage.byMemcachedCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.swapUsage.Average`) - from: DatastoreSample - where: provider='ElastiCacheRedisCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.swapUsage.Average`) + from: DatastoreSample + where: provider='ElastiCacheRedisCluster' + eventId: entityGuid + eventName: entityName freeableMemory: title: Free memory (bytes) - queries: - aws: - select: average(aws.elasticache.FreeableMemory.byMemcachedCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.freeableMemory.Average`) - from: DatastoreSample - where: provider='ElastiCacheRedisCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.freeableMemory.Average`) + from: DatastoreSample + where: provider='ElastiCacheRedisCluster' + eventId: entityGuid + eventName: entityName networkBytesIn: title: Bytes in per sec - queries: - aws: - select: rate(sum(aws.elasticache.NetworkBytesIn.byMemcachedCluster), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.networkBytesIn.Sum`), 1 second) - from: DatastoreSample - where: provider='ElastiCacheRedisCluster' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.networkBytesIn.Sum`), 1 second) + from: DatastoreSample + where: provider='ElastiCacheRedisCluster' + eventId: entityGuid + eventName: entityName networkBytesOut: title: Bytes out per sec - queries: - aws: - select: rate(sum(aws.elasticache.NetworkBytesOut.byMemcachedCluster), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.networkBytesOut.Sum`), 1 second) - from: DatastoreSample - where: provider='ElastiCacheRedisCluster' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.networkBytesOut.Sum`), 1 second) + from: DatastoreSample + where: provider='ElastiCacheRedisCluster' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awselasticacheredisnode/golden_metrics.yml b/definitions/infra-awselasticacheredisnode/golden_metrics.yml index b36afcc9b..b82b05b5e 100644 --- a/definitions/infra-awselasticacheredisnode/golden_metrics.yml +++ b/definitions/infra-awselasticacheredisnode/golden_metrics.yml @@ -1,84 +1,48 @@ readThroughput: title: Reads per sec - queries: - aws: - select: rate(sum(aws.elasticache.CacheHits) + sum(aws.elasticache.CacheMisses), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.cacheHits.Sum)+sum(provider.cacheMisses.Sum), 1 second) - from: DatastoreSample - where: provider='ElastiCacheRedisNode' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.cacheHits.Sum)+sum(provider.cacheMisses.Sum), 1 second) + from: DatastoreSample + where: provider='ElastiCacheRedisNode' + eventId: entityGuid + eventName: entityName cacheHitRate: title: Cache hit rate (%) - queries: - aws: - select: 100 * sum(aws.elasticache.CacheHits) / (sum(aws.elasticache.CacheHits) + sum(aws.elasticache.CacheMisses)) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: (sum(provider.cacheHits.Sum)/(sum(provider.cacheHits.Sum)+sum(provider.cacheMisses.Sum)))*100 - from: DatastoreSample - where: provider='ElastiCacheRedisNode' - eventId: entityGuid - eventName: entityName + query: + select: (sum(provider.cacheHits.Sum)/(sum(provider.cacheHits.Sum)+sum(provider.cacheMisses.Sum)))*100 + from: DatastoreSample + where: provider='ElastiCacheRedisNode' + eventId: entityGuid + eventName: entityName evictedItems: title: Evicted items per sec - queries: - aws: - select: rate(sum(aws.elasticache.Evictions.byMemcachedNode), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(`provider.evictions.Sum`), 1 second) - from: DatastoreSample - where: provider='ElastiCacheRedisNode' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(`provider.evictions.Sum`), 1 second) + from: DatastoreSample + where: provider='ElastiCacheRedisNode' + eventId: entityGuid + eventName: entityName swapUsage: title: Swap Usage - queries: - aws: - select: average(aws.elasticache.SwapUsage.byMemcachedCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.swapUsage.Average`) - from: DatastoreSample - where: provider='ElastiCacheRedisNode' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.swapUsage.Average`) + from: DatastoreSample + where: provider='ElastiCacheRedisNode' + eventId: entityGuid + eventName: entityName cpuUtilization: title: CPU utilization (%) - queries: - aws: - select: average(aws.rds.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.cpuUtilization.Average) - from: DatastoreSample - where: provider='ElastiCacheRedisNode' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.cpuUtilization.Average) + from: DatastoreSample + where: provider='ElastiCacheRedisNode' + eventId: entityGuid + eventName: entityName currentConnections: title: Current connections - queries: - aws: - select: average(aws.elasticache.CurrConnections.byMemcachedNode) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.currConnections.Average`) - from: DatastoreSample - where: provider='ElastiCacheRedisNode' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.currConnections.Average`) + from: DatastoreSample + where: provider='ElastiCacheRedisNode' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awselasticbeanstalkenvironment/golden_metrics.yml b/definitions/infra-awselasticbeanstalkenvironment/golden_metrics.yml index 0ce6e8d1a..a8e1c0722 100644 --- a/definitions/infra-awselasticbeanstalkenvironment/golden_metrics.yml +++ b/definitions/infra-awselasticbeanstalkenvironment/golden_metrics.yml @@ -1,26 +1,16 @@ requests: + query: + eventId: entityGuid + select: sum(`provider.applicationRequestsTotal.Sum`) + from: ElasticBeanstalkEnvironmentSample + eventName: entityName + unit: COUNT title: Requests - queries: - aws: - select: sum(aws.elasticbeanstalk.ApplicationRequestsTotal.byEnvironment) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.applicationRequestsTotal.Sum`) - from: ElasticBeanstalkEnvironmentSample - eventId: entityGuid - eventName: entityName latency: + query: + eventId: entityGuid + select: (average(`provider.applicationLatencyP99.9.Average`) * 1000) / 1000 + from: ElasticBeanstalkEnvironmentSample + eventName: entityName + unit: SECONDS title: Latency - queries: - aws: - select: average(aws.elasticbeanstalk.ApplicationLatencyP99.9.byEnvironment) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.applicationLatencyP99.9.Average`) - from: ElasticBeanstalkEnvironmentSample - eventId: entityGuid - eventName: entityName diff --git a/definitions/infra-awselasticbeanstalkinstance/golden_metrics.yml b/definitions/infra-awselasticbeanstalkinstance/golden_metrics.yml index c7bd07bc3..97aaa3ff3 100644 --- a/definitions/infra-awselasticbeanstalkinstance/golden_metrics.yml +++ b/definitions/infra-awselasticbeanstalkinstance/golden_metrics.yml @@ -1,26 +1,14 @@ requests: + query: + eventId: entityGuid + select: sum(`provider.applicationRequestsTotal.Sum`) + from: ElasticBeanstalkInstanceSample + unit: COUNT title: Requests - queries: - aws: - select: sum(aws.elasticbeanstalk.ApplicationRequestsTotal.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.applicationRequestsTotal.Sum`) - from: ElasticBeanstalkInstanceSample - eventId: entityGuid - eventName: entityName latency: + query: + eventId: entityGuid + select: (average(`provider.applicationLatencyP99.9.Average`) * 1000) / 1000 + from: ElasticBeanstalkInstanceSample + unit: SECONDS title: Latency - queries: - aws: - select: average(aws.elasticbeanstalk.ApplicationLatencyP99.9.byInstance) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.applicationLatencyP99.9.Average`) - from: ElasticBeanstalkInstanceSample - eventId: entityGuid - eventName: entityName diff --git a/definitions/infra-awselasticmapreducecluster/golden_metrics.yml b/definitions/infra-awselasticmapreducecluster/golden_metrics.yml index 70c297476..95959b8fa 100644 --- a/definitions/infra-awselasticmapreducecluster/golden_metrics.yml +++ b/definitions/infra-awselasticmapreducecluster/golden_metrics.yml @@ -1,42 +1,27 @@ availableMemoryBytes: title: Available memory - queries: - aws: - select: average(aws.elasticmapreduce.MemoryAvailableMB) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.memoryAvailableBytes.Average) - from: ElasticMapReduceClusterSample - where: provider='ElasticMapReduceCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.memoryAvailableBytes.Average) + from: ElasticMapReduceClusterSample + where: provider='ElasticMapReduceCluster' + eventId: entityGuid + eventName: entityName + unit: BYTES completedApplications: title: Completed applications - queries: - aws: - select: rate(sum(aws.elasticmapreduce.AppsCompleted), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.appsCompleted.Sum), 1 minute) - from: ElasticMapReduceClusterSample - where: provider='ElasticMapReduceCluster' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.appsCompleted.Sum), 1 minute) + from: ElasticMapReduceClusterSample + where: provider='ElasticMapReduceCluster' + eventId: entityGuid + eventName: entityName + unit: COUNT failedApplications: title: Failed applications - queries: - aws: - select: rate(sum(aws.elasticmapreduce.AppsFailed), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.appsFailed.Sum), 1 minute) - from: ElasticMapReduceClusterSample - where: provider='ElasticMapReduceCluster' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.appsFailed.Sum), 1 minute) + from: ElasticMapReduceClusterSample + where: provider='ElasticMapReduceCluster' + eventId: entityGuid + eventName: entityName + unit: COUNT diff --git a/definitions/infra-awselasticsearchcluster/golden_metrics.yml b/definitions/infra-awselasticsearchcluster/golden_metrics.yml index 46bbe8674..92d2208da 100644 --- a/definitions/infra-awselasticsearchcluster/golden_metrics.yml +++ b/definitions/infra-awselasticsearchcluster/golden_metrics.yml @@ -1,84 +1,48 @@ searchRateOpsMin: title: Search rate (reqs/min) - queries: - aws: - select: average(aws.es.SearchRate.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.SearchRate.Average) - from: DatastoreSample - where: provider='ElasticsearchCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.SearchRate.Average) + from: DatastoreSample + where: provider='ElasticsearchCluster' + eventId: entityGuid + eventName: entityName indexingRateReqsMin: title: Indexing rate (reqs/min) - queries: - aws: - select: average(aws.es.IndexingRate.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.IndexingRate.Average) - from: DatastoreSample - where: provider='ElasticsearchCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.IndexingRate.Average) + from: DatastoreSample + where: provider='ElasticsearchCluster' + eventId: entityGuid + eventName: entityName searchLatencyMs: title: Search latency (ms) - queries: - aws: - select: average(aws.es.SearchLatency.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.SearchLatency.Average) - from: DatastoreSample - where: provider='ElasticsearchCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.SearchLatency.Average) + from: DatastoreSample + where: provider='ElasticsearchCluster' + eventId: entityGuid + eventName: entityName indexingLatencyMs: title: Indexing latency (ms) - queries: - aws: - select: average(aws.es.IndexingLatency.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.IndexingLatency.Average) - from: DatastoreSample - where: provider='ElasticsearchCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.IndexingLatency.Average) + from: DatastoreSample + where: provider='ElasticsearchCluster' + eventId: entityGuid + eventName: entityName cpuUtilization: title: CPU Utilization (%) - queries: - aws: - select: average(aws.es.CPUUtilization.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.CPUUtilization.Average`) - from: DatastoreSample - where: provider='ElasticsearchCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.CPUUtilization.Average`) + from: DatastoreSample + where: provider='ElasticsearchCluster' + eventId: entityGuid + eventName: entityName jvmMemoryPressure: title: JVM memory pressure (%) - queries: - aws: - select: max(aws.es.JVMMemoryPressure.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.JVMMemoryPressure.Maximum`) - from: DatastoreSample - where: provider='ElasticsearchCluster' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.JVMMemoryPressure.Maximum`) + from: DatastoreSample + where: provider='ElasticsearchCluster' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awselasticsearchnode/golden_metrics.yml b/definitions/infra-awselasticsearchnode/golden_metrics.yml index df82146f2..76da11820 100644 --- a/definitions/infra-awselasticsearchnode/golden_metrics.yml +++ b/definitions/infra-awselasticsearchnode/golden_metrics.yml @@ -1,84 +1,48 @@ searchRateOpsMin: title: Search rate (reqs/min) - queries: - aws: - select: average(aws.es.SearchRate.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.SearchRate.Average) - from: DatastoreSample - where: provider='ElasticsearchNode' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.SearchRate.Average) + from: DatastoreSample + where: provider='ElasticsearchNode' + eventId: entityGuid + eventName: entityName indexingRateReqsMin: title: Indexing rate (reqs/min) - queries: - aws: - select: average(aws.es.IndexingRate.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.IndexingRate.Average) - from: DatastoreSample - where: provider='ElasticsearchNode' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.IndexingRate.Average) + from: DatastoreSample + where: provider='ElasticsearchNode' + eventId: entityGuid + eventName: entityName searchLatencyMs: title: Search latency (ms) - queries: - aws: - select: average(aws.es.SearchLatency.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.SearchLatency.Average) - from: DatastoreSample - where: provider='ElasticsearchNode' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.SearchLatency.Average) + from: DatastoreSample + where: provider='ElasticsearchNode' + eventId: entityGuid + eventName: entityName indexingLatencyMs: title: Indexing latency (ms) - queries: - aws: - select: average(aws.es.IndexingLatency.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.IndexingLatency.Average) - from: DatastoreSample - where: provider='ElasticsearchNode' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.IndexingLatency.Average) + from: DatastoreSample + where: provider='ElasticsearchNode' + eventId: entityGuid + eventName: entityName cpuUtilization: title: Max CPU Utilization (%) - queries: - aws: - select: max(aws.es.CPUUtilization.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.CPUUtilization.Maximum`) - from: DatastoreSample - where: provider='ElasticsearchNode' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.CPUUtilization.Maximum`) + from: DatastoreSample + where: provider='ElasticsearchNode' + eventId: entityGuid + eventName: entityName jvmMemoryPressure: title: Max JVM memory pressure (%) - queries: - aws: - select: max(aws.es.JVMMemoryPressure.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.JVMMemoryPressure.Maximum`) - from: DatastoreSample - where: provider='ElasticsearchNode' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.JVMMemoryPressure.Maximum`) + from: DatastoreSample + where: provider='ElasticsearchNode' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awselb/golden_metrics.yml b/definitions/infra-awselb/golden_metrics.yml index b90b8b409..7236aac6f 100644 --- a/definitions/infra-awselb/golden_metrics.yml +++ b/definitions/infra-awselb/golden_metrics.yml @@ -1,56 +1,48 @@ requests: title: Requests per min - queries: - aws: - select: rate(sum(aws.elb.RequestCount), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.requestCount.Sum), 1 minute) - from: LoadBalancerSample - where: provider='Elb' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.requestCount.Sum), 1 minute) + from: LoadBalancerSample + where: provider='Elb' + eventId: entityGuid + eventName: entityName latency: title: Latency (s) - queries: - aws: - select: average(aws.elb.Latency) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.latency.Average) - from: LoadBalancerSample - where: provider='Elb' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.latency.Average) + from: LoadBalancerSample + where: provider='Elb' + eventId: entityGuid + eventName: entityName errorRate: title: Error Rate - queries: - aws: - select: rate(sum(aws.elb.BackendConnectionErrors), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.backendConnectionErrors.Sum), 1 minute) - from: LoadBalancerSample - where: provider='Elb' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.backendConnectionErrors.Sum), 1 minute) + from: LoadBalancerSample + where: provider='Elb' + eventId: entityGuid + eventName: entityName +latencyP99: + title: P99 Latency (s) + query: + select: average(provider.latency.p99) + from: LoadBalancerSample + where: provider='Elb' + eventId: entityGuid + eventName: entityName +latencyP90: + title: P90 Latency (s) + query: + select: average(provider.latency.p90) + from: LoadBalancerSample + where: provider='Elb' + eventId: entityGuid + eventName: entityName unhealthyHosts: title: Unhealthy hosts - queries: - aws: - select: average(aws.elb.UnhealthyHostCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.unhealthyHostCount.Average`) - from: LoadBalancerSample - where: provider='Elb' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.unhealthyHostCount.Average`) + from: LoadBalancerSample + where: provider='Elb' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsfsxwindowsfileserver/golden_metrics.yml b/definitions/infra-awsfsxwindowsfileserver/golden_metrics.yml index 765107601..98511ca1b 100644 --- a/definitions/infra-awsfsxwindowsfileserver/golden_metrics.yml +++ b/definitions/infra-awsfsxwindowsfileserver/golden_metrics.yml @@ -1,52 +1,28 @@ fileSystemReadOperationsBytes: title: File system read operations (bytes) - queries: - aws: - select: average(aws.fsx.DataReadBytes) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.dataReadBytes.Average) - from: AwsFsxWindowsFileServerSample - eventId: entityGuid - eventName: entityName + query: + select: average(dataReadBytes) + from: AwsFsxWindowsFileServerSample + eventId: entityGuid + eventName: entityName fileSystemWriteOperationsBytes: title: File system write operations (bytes) - queries: - aws: - select: average(aws.fsx.DataWriteBytes) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.dataWriteBytes.Average) - from: AwsFsxWindowsFileServerSample - eventId: entityGuid - eventName: entityName + query: + select: average(dataWriteBytes) + from: AwsFsxWindowsFileServerSample + eventId: entityGuid + eventName: entityName readOperations: title: Read operations - queries: - aws: - select: average(aws.fsx.DataReadOperations) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.dataReadOperations.Average) - from: AwsFsxWindowsFileServerSample - eventId: entityGuid - eventName: entityName + query: + select: average(dataReadOperations) + from: AwsFsxWindowsFileServerSample + eventId: entityGuid + eventName: entityName writeOperations: title: Write operations - queries: - aws: - select: average(aws.fsx.DataWriteOperations) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.dataWriteOperations.Average) - from: AwsFsxWindowsFileServerSample - eventId: entityGuid - eventName: entityName + query: + select: average(dataWriteOperations) + from: AwsFsxWindowsFileServerSample + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awskinesisdeliverystream/golden_metrics.yml b/definitions/infra-awskinesisdeliverystream/golden_metrics.yml index 8501fbe47..f44a0c20b 100644 --- a/definitions/infra-awskinesisdeliverystream/golden_metrics.yml +++ b/definitions/infra-awskinesisdeliverystream/golden_metrics.yml @@ -1,56 +1,34 @@ putThroughput: title: Bytes in per sec - queries: - aws: - select: rate(sum(aws.kinesis.IncomingBytes.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.incomingBytes.Sum), 1 second) - from: QueueSample - where: provider='KinesisDeliveryStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.incomingBytes.Sum), 1 second) + from: QueueSample + where: provider='KinesisDeliveryStream' + eventId: entityGuid + eventName: entityName getThroughput: title: Bytes out per sec - queries: - aws: - select: rate(sum(aws.firehose.DeliveryToElasticsearch.Bytes) + sum(aws.firehose.DeliveryToS3.Bytes) + sum(aws.firehose.DeliveryToRedshift.Bytes), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate((sum(`provider.deliveryToElasticsearchBytes.Sum`) + sum(`provider.deliveryToS3Bytes.Sum`) + sum(`provider.deliveryToRedshiftBytes.Sum`)), 1 second) - from: QueueSample - where: provider='KinesisDeliveryStream' - eventId: entityGuid - eventName: entityName + query: + select: rate((sum(`provider.deliveryToElasticsearchBytes.Sum`) + sum(`provider.deliveryToS3Bytes.Sum`) + + sum(`provider.deliveryToRedshiftBytes.Sum`)), 1 second) + from: QueueSample + where: provider='KinesisDeliveryStream' + eventId: entityGuid + eventName: entityName putRecordThroughput: title: Records in per sec - queries: - aws: - select: rate(sum(aws.kinesis.IncomingRecords.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.incomingRecords.Sum), 1 second) - from: QueueSample - where: provider='KinesisDeliveryStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.incomingRecords.Sum), 1 second) + from: QueueSample + where: provider='KinesisDeliveryStream' + eventId: entityGuid + eventName: entityName getRecordsThroughput: title: Records out per sec - queries: - aws: - select: rate(sum(aws.firehose.DeliveryToElasticsearch.Records) + sum(aws.firehose.DeliveryToS3.Records) + sum(aws.firehose.DeliveryToRedshift.Records), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate((sum(`provider.deliveryToElasticsearchRecords.Sum`) + sum(`provider.deliveryToS3Records.Sum`) + sum(`provider.deliveryToRedshiftRecords.Sum`)), 1 second) - from: QueueSample - where: provider='KinesisDeliveryStream' - eventId: entityGuid - eventName: entityName + query: + select: rate((sum(`provider.deliveryToElasticsearchRecords.Sum`) + sum(`provider.deliveryToS3Records.Sum`) + + sum(`provider.deliveryToRedshiftRecords.Sum`)), 1 second) + from: QueueSample + where: provider='KinesisDeliveryStream' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awskinesisstream/golden_metrics.yml b/definitions/infra-awskinesisstream/golden_metrics.yml index 4d6e258bb..2e2c07b29 100644 --- a/definitions/infra-awskinesisstream/golden_metrics.yml +++ b/definitions/infra-awskinesisstream/golden_metrics.yml @@ -1,84 +1,48 @@ putThroughput: title: Bytes in per sec - queries: - aws: - select: rate(sum(aws.kinesis.IncomingBytes.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.incomingBytes.Sum), 1 second) - from: QueueSample - where: provider='KinesisStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.incomingBytes.Sum), 1 second) + from: QueueSample + where: provider='KinesisStream' + eventId: entityGuid + eventName: entityName getThroughput: title: Bytes out per sec - queries: - aws: - select: rate(sum(aws.kinesis.GetRecords.Bytes), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.getRecordsBytes.Sum), 1 second) - from: QueueSample - where: provider='KinesisStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.getRecordsBytes.Sum), 1 second) + from: QueueSample + where: provider='KinesisStream' + eventId: entityGuid + eventName: entityName putRecordThroughput: title: Put records per sec - queries: - aws: - select: rate(sum(aws.kinesis.IncomingRecords.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.incomingRecords.Sum), 1 second) - from: QueueSample - where: provider='KinesisStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.incomingRecords.Sum), 1 second) + from: QueueSample + where: provider='KinesisStream' + eventId: entityGuid + eventName: entityName getRecordsThroughput: title: Get records per sec - queries: - aws: - select: rate(sum(aws.kinesis.GetRecords.Records), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.getRecordsRecords.Sum), 1 second) - from: QueueSample - where: provider='KinesisStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.getRecordsRecords.Sum), 1 second) + from: QueueSample + where: provider='KinesisStream' + eventId: entityGuid + eventName: entityName putrecordsCallsThrottled: title: Puts throttled per second - queries: - aws: - select: rate(sum(aws.kinesis.WriteProvisionedThroughputExceeded.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.writeProvisionedThroughputExceeded.Sum), 1 second) - from: QueueSample - where: provider='KinesisStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.writeProvisionedThroughputExceeded.Sum), 1 second) + from: QueueSample + where: provider='KinesisStream' + eventId: entityGuid + eventName: entityName getrecordsCallsThrottled: title: Gets throttled per second - queries: - aws: - select: rate(sum(aws.kinesis.ReadProvisionedThroughputExceeded.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.readProvisionedThroughputExceeded.Sum), 1 second) - from: QueueSample - where: provider='KinesisStream' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.readProvisionedThroughputExceeded.Sum), 1 second) + from: QueueSample + where: provider='KinesisStream' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awskinesisstreamshard/golden_metrics.yml b/definitions/infra-awskinesisstreamshard/golden_metrics.yml index 40ff26c75..dca03753f 100644 --- a/definitions/infra-awskinesisstreamshard/golden_metrics.yml +++ b/definitions/infra-awskinesisstreamshard/golden_metrics.yml @@ -1,84 +1,48 @@ putThroughput: title: Bytes in per sec - queries: - aws: - select: rate(sum(aws.kinesis.IncomingBytes.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.incomingBytes.Sum), 1 second) - from: QueueSample - where: provider='KinesisStreamShard' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.incomingBytes.Sum), 1 second) + from: QueueSample + where: provider='KinesisStreamShard' + eventId: entityGuid + eventName: entityName getThroughput: title: Bytes out per sec - queries: - aws: - select: rate(sum(aws.kinesis.OutgoingBytes), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.outgoingBytes.Sum), 1 second) - from: QueueSample - where: provider='KinesisStreamShard' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.outgoingBytes.Sum), 1 second) + from: QueueSample + where: provider='KinesisStreamShard' + eventId: entityGuid + eventName: entityName putRecordThroughput: title: Put records per sec - queries: - aws: - select: rate(sum(aws.kinesis.IncomingRecords.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.incomingRecords.Sum), 1 second) - from: QueueSample - where: provider='KinesisStreamShard' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.incomingRecords.Sum), 1 second) + from: QueueSample + where: provider='KinesisStreamShard' + eventId: entityGuid + eventName: entityName getRecordsThroughput: title: Get records per sec - queries: - aws: - select: rate(sum(aws.kinesis.OutgoingRecords), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.outgoingRecords.Sum), 1 second) - from: QueueSample - where: provider='KinesisStreamShard' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.outgoingRecords.Sum), 1 second) + from: QueueSample + where: provider='KinesisStreamShard' + eventId: entityGuid + eventName: entityName putrecordsCallsThrottled: title: Puts throttled per sec - queries: - aws: - select: rate(sum(aws.kinesis.WriteProvisionedThroughputExceeded.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.writeProvisionedThroughputExceeded.Sum), 1 second) - from: QueueSample - where: provider='KinesisStreamShard' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.writeProvisionedThroughputExceeded.Sum), 1 second) + from: QueueSample + where: provider='KinesisStreamShard' + eventId: entityGuid + eventName: entityName getrecordsCallsThrottled: title: Gets throttled per sec - queries: - aws: - select: rate(sum(aws.kinesis.ReadProvisionedThroughputExceeded.byStream), 1 second) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.readProvisionedThroughputExceeded.Sum), 1 second) - from: QueueSample - where: provider='KinesisStreamShard' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.readProvisionedThroughputExceeded.Sum), 1 second) + from: QueueSample + where: provider='KinesisStreamShard' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awslambdafunction/golden_metrics.yml b/definitions/infra-awslambdafunction/golden_metrics.yml index a31c36745..48f39c6cc 100644 --- a/definitions/infra-awslambdafunction/golden_metrics.yml +++ b/definitions/infra-awslambdafunction/golden_metrics.yml @@ -1,56 +1,32 @@ errorRate: title: Error rate % - queries: - aws: - select: sum(aws.lambda.Errors.byFunction) * 100 / sum(aws.lambda.Invocations.byFunction) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.errors.Sum) * 100 / sum(provider.invocations.Sum) - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.errors.Sum) * 100 / sum(provider.invocations.Sum) + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName totalInvocations: title: Total Invocations - queries: - aws: - select: rate(sum(aws.lambda.Invocations.byFunction), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.invocations.Sum),1 minute) - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.invocations.Sum),1 minute) + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName duration99PercentileS: title: Duration (99 percentile) (s) - queries: - aws: - select: max(aws.lambda.Duration.byFunction) / 1000 - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.duration.Maximum) / 1000 - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.duration.Maximum) / 1000 + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName throttles: title: Throttled invocations - queries: - aws: - select: rate(sum(aws.lambda.Throttles.byFunction), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.throttles.Sum), 1 minute) - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.throttles.Sum), 1 minute) + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awslambdafunctionalias/golden_metrics.yml b/definitions/infra-awslambdafunctionalias/golden_metrics.yml index a31c36745..48f39c6cc 100644 --- a/definitions/infra-awslambdafunctionalias/golden_metrics.yml +++ b/definitions/infra-awslambdafunctionalias/golden_metrics.yml @@ -1,56 +1,32 @@ errorRate: title: Error rate % - queries: - aws: - select: sum(aws.lambda.Errors.byFunction) * 100 / sum(aws.lambda.Invocations.byFunction) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.errors.Sum) * 100 / sum(provider.invocations.Sum) - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.errors.Sum) * 100 / sum(provider.invocations.Sum) + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName totalInvocations: title: Total Invocations - queries: - aws: - select: rate(sum(aws.lambda.Invocations.byFunction), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.invocations.Sum),1 minute) - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.invocations.Sum),1 minute) + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName duration99PercentileS: title: Duration (99 percentile) (s) - queries: - aws: - select: max(aws.lambda.Duration.byFunction) / 1000 - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.duration.Maximum) / 1000 - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.duration.Maximum) / 1000 + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName throttles: title: Throttled invocations - queries: - aws: - select: rate(sum(aws.lambda.Throttles.byFunction), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.throttles.Sum), 1 minute) - from: ServerlessSample - where: provider='LambdaFunction' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.throttles.Sum), 1 minute) + from: ServerlessSample + where: provider='LambdaFunction' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awslambdaregion/golden_metrics.yml b/definitions/infra-awslambdaregion/golden_metrics.yml index 187f7702b..cc9416b08 100644 --- a/definitions/infra-awslambdaregion/golden_metrics.yml +++ b/definitions/infra-awslambdaregion/golden_metrics.yml @@ -1,28 +1,16 @@ ConcurrentExecutions: title: Max Current Executions - queries: - aws: - select: max(aws.lambda.ConcurrentExecutions.byFunction) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.concurrentExecutions.Maximum`) - from: ServerlessSample - where: provider='LambdaRegion' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.concurrentExecutions.Maximum`) + from: ServerlessSample + where: provider='LambdaRegion' + eventId: entityGuid + eventName: entityName UnreservedConcurrentExecutions: title: Max Unreserved Current Executions - queries: - aws: - select: max(aws.lambda.UnreservedConcurrentExecutions) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.unreservedConcurrentExecutions.Maximum`) - from: ServerlessSample - where: provider='LambdaRegion' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.unreservedConcurrentExecutions.Maximum`) + from: ServerlessSample + where: provider='LambdaRegion' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsmediaconvertoperation/golden_metrics.yml b/definitions/infra-awsmediaconvertoperation/golden_metrics.yml index 3071985c7..1cb01ec51 100644 --- a/definitions/infra-awsmediaconvertoperation/golden_metrics.yml +++ b/definitions/infra-awsmediaconvertoperation/golden_metrics.yml @@ -1,13 +1,7 @@ operationErrors: title: Operation errors - queries: - aws: - select: average(aws.mediaconvert.Errors) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.errors.Average) - from: AwsMediaConvertOperationSample - eventId: entityGuid - eventName: entityName + query: + select: average(errors) + from: AwsMediaConvertOperationSample + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsmediaconvertqueue/golden_metrics.yml b/definitions/infra-awsmediaconvertqueue/golden_metrics.yml index 47ab55ec0..e1aa8ac0b 100644 --- a/definitions/infra-awsmediaconvertqueue/golden_metrics.yml +++ b/definitions/infra-awsmediaconvertqueue/golden_metrics.yml @@ -1,117 +1,63 @@ audioOnlyOutputS: title: Audio-only output (s) - queries: - aws: - select: average(aws.mediaconvert.AudioOutputDuration) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.audioOutputDuration.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(audioOutputDuration) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName standardDefinitionSdOutputS: title: Standard definition (SD) output (s) - queries: - aws: - select: average(aws.mediaconvert.SDOutputDuration) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.sDOutputDuration.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(sDOutputDuration) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName highDefinitionHdOutputS: title: High-definition (HD) output (s) - queries: - aws: - select: average(aws.mediaconvert.HDOutputDuration) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.hDOutputDuration.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(hDOutputDuration) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName ultraHighDefinitionUhdOutputS: title: Ultra-high-definition (UHD) output (s) - queries: - aws: - select: average(aws.mediaconvert.UHDOutputDuration) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.uHDOutputDuration.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(uHDOutputDuration) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName 8KOutputS: title: 8K output (s) - queries: - aws: - select: average(`aws.mediaconvert.8KOutputDuration`) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.8KOutputDuration.Average`) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(`8KOutputDuration`) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName jobsCompleted: title: Jobs completed - queries: - aws: - select: average(aws.mediaconvert.JobsCompletedCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.jobsCompletedCount.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(jobsCompletedCount) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName jobsFailed: title: Jobs failed - queries: - aws: - select: average(aws.mediaconvert.JobsErroredCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.jobsErroredCount.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(jobsErroredCount) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName transcodingStandByDurationS: title: Transcoding stand by duration (s) - queries: - aws: - select: average(aws.mediaconvert.StandbyTime) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.standbyTime.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(standbyTime) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName transcodingDurationS: title: Transcoding duration (s) - queries: - aws: - select: average(aws.mediaconvert.TranscodingTime) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.transcodingTime.Average) - from: AwsMediaConvertQueueSample - eventId: entityGuid - eventName: entityName + query: + select: average(transcodingTime) + from: AwsMediaConvertQueueSample + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsmediapackagevodpackagingconfiguration/golden_metrics.yml b/definitions/infra-awsmediapackagevodpackagingconfiguration/golden_metrics.yml index a97bc1050..40d05911d 100644 --- a/definitions/infra-awsmediapackagevodpackagingconfiguration/golden_metrics.yml +++ b/definitions/infra-awsmediapackagevodpackagingconfiguration/golden_metrics.yml @@ -1,39 +1,21 @@ bytesSuccessfullySentPerRequest: title: Bytes successfully sent per request - queries: - aws: - select: average(aws.mediapackage.EgressBytes) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.egressBytes.Average) - from: AwsMediaPackageVODPackagingConfigurationSample - eventId: entityGuid - eventName: entityName + query: + select: average(egressBytes) + from: AwsMediaPackageVODPackagingConfigurationSample + eventId: entityGuid + eventName: entityName processTimeOfOutputRequestsMs: title: Process time of output requests (ms) - queries: - aws: - select: average(aws.mediapackage.EgressResponseTime) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.egressResponseTime.Average) - from: AwsMediaPackageVODPackagingConfigurationSample - eventId: entityGuid - eventName: entityName + query: + select: average(egressResponseTime) + from: AwsMediaPackageVODPackagingConfigurationSample + eventId: entityGuid + eventName: entityName contentRequestsReceived: title: Content requests received - queries: - aws: - select: sum(aws.mediapackage.EgressRequestCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.egressRequestCount.Sum) - from: AwsMediaPackageVODPackagingConfigurationSample - eventId: entityGuid - eventName: entityName + query: + select: average(egressRequestCount) + from: AwsMediaPackageVODPackagingConfigurationSample + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsmskbroker/golden_metrics.yml b/definitions/infra-awsmskbroker/golden_metrics.yml index ffd1ea0fc..6690161da 100644 --- a/definitions/infra-awsmskbroker/golden_metrics.yml +++ b/definitions/infra-awsmskbroker/golden_metrics.yml @@ -1,42 +1,24 @@ incomingMessagesPerSecond: title: Incoming Messages Per Second - queries: - aws: - select: average(aws.kafka.MessagesInPerSec.byBroker) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.messagesInPerSec.Average) - from: AwsMskBrokerSample - where: provider='AwsMskBroker' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.messagesInPerSec.Average) + from: AwsMskBrokerSample + where: provider='AwsMskBroker' + eventId: entityGuid + eventName: entityName networkRxDropped: title: Network RX Dropped - queries: - aws: - select: max(aws.kafka.NetworkRxDropped) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.networkRxDropped.Maximum) - from: AwsMskBrokerSample - where: provider='AwsMskBroker' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.networkRxDropped.Maximum) + from: AwsMskBrokerSample + where: provider='AwsMskBroker' + eventId: entityGuid + eventName: entityName networkTxDropped: title: Network TX Dropped - queries: - aws: - select: max(aws.kafka.NetworkTxDropped) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.networkTxDropped.Maximum) - from: AwsMskBrokerSample - where: provider='AwsMskBroker' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.networkTxDropped.Maximum) + from: AwsMskBrokerSample + where: provider='AwsMskBroker' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsmskcluster/golden_metrics.yml b/definitions/infra-awsmskcluster/golden_metrics.yml index 653e66ab9..1232f4256 100644 --- a/definitions/infra-awsmskcluster/golden_metrics.yml +++ b/definitions/infra-awsmskcluster/golden_metrics.yml @@ -1,42 +1,24 @@ activeControllers: title: Active controllers - queries: - aws: - select: min(aws.kafka.ActiveControllerCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: min(provider.activeControllerCount.Minimum) - from: AwsMskClusterSample - where: provider='AwsMskCluster' - eventId: entityGuid - eventName: entityName + query: + select: min(provider.activeControllerCount.Minimum) + from: AwsMskClusterSample + where: provider='AwsMskCluster' + eventId: entityGuid + eventName: entityName globalPartitions: title: Global partitions - queries: - aws: - select: min(aws.kafka.GlobalPartitionCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: min(provider.globalPartitionCount.Minimum) - from: AwsMskClusterSample - where: provider='AwsMskCluster' - eventId: entityGuid - eventName: entityName + query: + select: min(provider.globalPartitionCount.Minimum) + from: AwsMskClusterSample + where: provider='AwsMskCluster' + eventId: entityGuid + eventName: entityName offlinePartitions: title: Offline partitions - queries: - aws: - select: max(aws.kafka.OfflinePartitionsCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.offlinePartitionsCount.Maximum) - from: AwsMskClusterSample - where: provider='AwsMskCluster' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.offlinePartitionsCount.Maximum) + from: AwsMskClusterSample + where: provider='AwsMskCluster' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsnlb/golden_metrics.yml b/definitions/infra-awsnlb/golden_metrics.yml index 4d3e37724..867b81784 100644 --- a/definitions/infra-awsnlb/golden_metrics.yml +++ b/definitions/infra-awsnlb/golden_metrics.yml @@ -1,56 +1,32 @@ failedClientNlbTlsHandshakes: title: Failed client-NLB TLS handshakes - queries: - aws: - select: rate(sum(aws.applicationelb.ClientTLSNegotiationErrorCount), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.clientTlsNegotiationErrorCount.Sum),1 minute) - from: LoadBalancerSample - where: provider='Nlb' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.clientTlsNegotiationErrorCount.Sum),1 minute) + from: LoadBalancerSample + where: provider='Nlb' + eventId: entityGuid + eventName: entityName failedNlbTargetTlsHandshakes: title: Failed NLB-target TLS handshakes - queries: - aws: - select: rate(sum(aws.applicationelb.TargetTLSNegotiationErrorCount), 1 minute) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: rate(sum(provider.targetTlsNegotiationErrorCount.Sum),1 minute) - from: LoadBalancerSample - where: provider='Nlb' - eventId: entityGuid - eventName: entityName + query: + select: rate(sum(provider.targetTlsNegotiationErrorCount.Sum),1 minute) + from: LoadBalancerSample + where: provider='Nlb' + eventId: entityGuid + eventName: entityName concurrentFlows: title: Avg Concurrent flows - queries: - aws: - select: average(aws.networkelb.ActiveFlowCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.activeFlowCount.Average) - from: LoadBalancerSample - where: provider='Nlb' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.activeFlowCount.Average) + from: LoadBalancerSample + where: provider='Nlb' + eventId: entityGuid + eventName: entityName concurrentTlsFlows: title: Avg Concurrent TLS flows - queries: - aws: - select: average(aws.networkelb.ActiveFlowCount_TLS) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.activeFlowCountTls.Average) - from: LoadBalancerSample - where: provider='Nlb' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.activeFlowCountTls.Average) + from: LoadBalancerSample + where: provider='Nlb' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsnlbtargetgroup/golden_metrics.yml b/definitions/infra-awsnlbtargetgroup/golden_metrics.yml index da3214b65..570012864 100644 --- a/definitions/infra-awsnlbtargetgroup/golden_metrics.yml +++ b/definitions/infra-awsnlbtargetgroup/golden_metrics.yml @@ -1,28 +1,16 @@ unhealthyHosts: title: Unhealthy hosts - queries: - aws: - select: max(aws.networkelb.ActiveFlowCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(provider.activeFlowCount.Maximum) - from: LoadBalancerSample - where: provider='NlbTargetGroup' - eventId: entityGuid - eventName: entityName + query: + select: max(provider.activeFlowCount.Maximum) + from: LoadBalancerSample + where: provider='NlbTargetGroup' + eventId: entityGuid + eventName: entityName healthyHosts: title: Healthy hosts - queries: - aws: - select: min(aws.elb.HealthyHostCount) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: min(provider.healthyHostCount.Minimum) - from: LoadBalancerSample - where: provider='NlbTargetGroup' - eventId: entityGuid - eventName: entityName + query: + select: min(provider.healthyHostCount.Minimum) + from: LoadBalancerSample + where: provider='NlbTargetGroup' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsrdsdbcluster/golden_metrics.yml b/definitions/infra-awsrdsdbcluster/golden_metrics.yml index b48b6a3f6..4f9e51f24 100644 --- a/definitions/infra-awsrdsdbcluster/golden_metrics.yml +++ b/definitions/infra-awsrdsdbcluster/golden_metrics.yml @@ -1,42 +1,24 @@ readIops: title: Read IOPS - queries: - aws: - select: average(aws.rds.VolumeReadIOPs.byDbCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeReadIops.Average) - from: DatastoreSample - where: provider='RdsDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeReadIops.Average) + from: DatastoreSample + where: provider='RdsDbCluster' + eventId: entityGuid + eventName: entityName writeIops: title: Write IOPS - queries: - aws: - select: average(aws.rds.VolumeWriteIOPs.byDbCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeWriteIops.Average) - from: DatastoreSample - where: provider='RdsDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeWriteIops.Average) + from: DatastoreSample + where: provider='RdsDbCluster' + eventId: entityGuid + eventName: entityName usageBytes: title: Usage (bytes) - queries: - aws: - select: average(aws.rds.VolumeBytesUsed.byDbCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.volumeUsedBytes.Average) - from: DatastoreSample - where: provider='RdsDbCluster' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.volumeUsedBytes.Average) + from: DatastoreSample + where: provider='RdsDbCluster' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsrdsdbinstance/golden_metrics.yml b/definitions/infra-awsrdsdbinstance/golden_metrics.yml index 618d8995f..25f430a25 100644 --- a/definitions/infra-awsrdsdbinstance/golden_metrics.yml +++ b/definitions/infra-awsrdsdbinstance/golden_metrics.yml @@ -1,56 +1,32 @@ readThroughput: title: Read throughput - queries: - aws: - select: average(aws.rds.ReadThroughput) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.readThroughput.Average) - from: DatastoreSample - where: provider='RdsDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.readThroughput.Average) + from: DatastoreSample + where: provider='RdsDbInstance' + eventId: entityGuid + eventName: entityName writeThroughput: title: Write throughput - queries: - aws: - select: average(aws.rds.WriteThroughput) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.writeThroughput.Average) - from: DatastoreSample - where: provider='RdsDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.writeThroughput.Average) + from: DatastoreSample + where: provider='RdsDbInstance' + eventId: entityGuid + eventName: entityName latencyMs: title: Latency (ms) - queries: - aws: - select: (average(aws.rds.ReadLatency) + average(aws.rds.WriteLatency)) * 1000 - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.readLatency.Average + provider.writeLatency.Average) * 1000 - from: DatastoreSample - where: provider='RdsDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.readLatency.Average + provider.writeLatency.Average) * 1000 + from: DatastoreSample + where: provider='RdsDbInstance' + eventId: entityGuid + eventName: entityName databaseConnections: title: Database connections - queries: - aws: - select: average(aws.rds.DatabaseConnections) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.databaseConnections.Average) - from: DatastoreSample - where: provider='RdsDbInstance' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.databaseConnections.Average) + from: DatastoreSample + where: provider='RdsDbInstance' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsredshiftcluster/golden_metrics.yml b/definitions/infra-awsredshiftcluster/golden_metrics.yml index 09e22e4e2..326ad875d 100644 --- a/definitions/infra-awsredshiftcluster/golden_metrics.yml +++ b/definitions/infra-awsredshiftcluster/golden_metrics.yml @@ -1,56 +1,32 @@ CPUUtilization: title: Max CPU Utilization - queries: - aws: - select: max(aws.rds.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.cpuUtilization.Maximum`) - from: DatastoreSample - where: provider='RedshiftCluster' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.cpuUtilization.Maximum`) + from: DatastoreSample + where: provider='RedshiftCluster' + eventId: entityGuid + eventName: entityName QueryDuration: title: Max Query Duration - queries: - aws: - select: max(aws.redshift.QueryDuration) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.QueryDuration.Maximum`) - from: DatastoreSample - where: provider='RedshiftCluster' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.QueryDuration.Maximum`) + from: DatastoreSample + where: provider='RedshiftCluster' + eventId: entityGuid + eventName: entityName HealthStatus: title: Cluster Health Status - queries: - aws: - select: min(aws.redshift.HealthStatus.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: min(`provider.HealthStatus.Minimum`) - from: DatastoreSample - where: provider='RedshiftCluster' - eventId: entityGuid - eventName: entityName + query: + select: min(`provider.HealthStatus.Minimum`) + from: DatastoreSample + where: provider='RedshiftCluster' + eventId: entityGuid + eventName: entityName DatabaseConnections: title: Database Connections - queries: - aws: - select: max(aws.redshift.DatabaseConnections.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.DatabaseConnections.Maximum`) - from: DatastoreSample - where: provider='RedshiftCluster' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.DatabaseConnections.Maximum`) + from: DatastoreSample + where: provider='RedshiftCluster' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsredshiftnode/golden_metrics.yml b/definitions/infra-awsredshiftnode/golden_metrics.yml index 7cd86a580..55527216b 100644 --- a/definitions/infra-awsredshiftnode/golden_metrics.yml +++ b/definitions/infra-awsredshiftnode/golden_metrics.yml @@ -1,84 +1,48 @@ CPUUtilization: title: Max CPU Utilization - queries: - aws: - select: max(aws.rds.CPUUtilization) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.cpuUtilization.Maximum`) - from: DatastoreSample - where: provider='RedshiftNode' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.cpuUtilization.Maximum`) + from: DatastoreSample + where: provider='RedshiftNode' + eventId: entityGuid + eventName: entityName DatabaseConnections: title: Database Connections - queries: - aws: - select: max(aws.redshift.DatabaseConnections.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.DatabaseConnections.Maximum`) - from: DatastoreSample - where: provider='RedshiftNode' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.DatabaseConnections.Maximum`) + from: DatastoreSample + where: provider='RedshiftNode' + eventId: entityGuid + eventName: entityName ReadLatency: title: Max Read Latency - queries: - aws: - select: max(aws.es.ReadLatency) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.ReadLatency.Maximum`) - from: DatastoreSample - where: provider='RedshiftNode' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.ReadLatency.Maximum`) + from: DatastoreSample + where: provider='RedshiftNode' + eventId: entityGuid + eventName: entityName WriteLatency: title: Max Write Latency - queries: - aws: - select: max(aws.es.WriteLatency) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.WriteLatency.Maximum`) - from: DatastoreSample - where: provider='RedshiftNode' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.WriteLatency.Maximum`) + from: DatastoreSample + where: provider='RedshiftNode' + eventId: entityGuid + eventName: entityName PercentageDiskSpace: title: Max Percentage disk space used - queries: - aws: - select: max(aws.redshift.PercentageDiskSpaceUsed.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: max(`provider.PercentageDiskSpaceUsed.Maximum`) - from: DatastoreSample - where: provider='RedshiftNode' - eventId: entityGuid - eventName: entityName + query: + select: max(`provider.PercentageDiskSpaceUsed.Maximum`) + from: DatastoreSample + where: provider='RedshiftNode' + eventId: entityGuid + eventName: entityName HealthStatus: title: Cluster Health Status - queries: - aws: - select: min(aws.redshift.HealthStatus.byCluster) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: min(`provider.HealthStatus.Minimum`) - from: DatastoreSample - where: provider='RedshiftNode' - eventId: entityGuid - eventName: entityName + query: + select: min(`provider.HealthStatus.Minimum`) + from: DatastoreSample + where: provider='RedshiftNode' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awss3bucket/golden_metrics.yml b/definitions/infra-awss3bucket/golden_metrics.yml index 74fa66756..26b284d0c 100644 --- a/definitions/infra-awss3bucket/golden_metrics.yml +++ b/definitions/infra-awss3bucket/golden_metrics.yml @@ -1,69 +1,41 @@ requests: title: Requests - queries: - aws: - select: sum(aws.s3.GetRequests) + sum(aws.s3.PutRequests) + sum(aws.s3.HeadRequests) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.getRequests.Sum`) + sum(`provider.putRequests.Sum`) + sum(`provider.headRequests.Sum`) - from: DatastoreSample - where: provider='S3BucketRequests' - eventId: entityGuid - eventName: entityName + query: + select: sum(`provider.getRequests.Sum`) + sum(`provider.putRequests.Sum`) + sum(`provider.headRequests.Sum`) + from: DatastoreSample + where: provider='S3BucketRequests' + eventId: entityGuid + eventName: entityName + unit: COUNT errors4xxAnd5xx: title: Errors - queries: - aws: - select: sum(`aws.s3.4xxErrors`) + sum(`aws.s3.5xxErrors`) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.error4xxErrors.Sum`) + sum(`provider.error5xxErrors.Sum`) - from: DatastoreSample - where: provider='S3BucketRequests' - eventId: entityGuid - eventName: entityName + query: + select: sum(`provider.error4xxErrors.Sum`) + sum(`provider.error5xxErrors.Sum`) + from: DatastoreSample + eventId: entityGuid + where: provider='S3BucketRequests' + eventName: entityName + unit: COUNT latency: title: Latency - queries: - aws: - select: (average(aws.s3.TotalRequestLatency)) / 1000 - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: (average(`provider.totalRequestLatency.Average`)) / 1000 - from: DatastoreSample - eventId: entityGuid - eventName: entityName + query: + eventId: entityGuid + select: (average(`provider.totalRequestLatency.Average`)) / 1000 + from: DatastoreSample + unit: SECONDS bytesDownloaded: title: Bytes downloaded - queries: - aws: - select: sum(aws.s3.BytesDownloaded) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.bytesDownloaded.Sum`) - from: DatastoreSample - where: provider='S3BucketRequests' - eventId: entityGuid - eventName: entityName + query: + select: sum(`provider.bytesDownloaded.Sum`) + from: DatastoreSample + where: provider='S3BucketRequests' + eventId: entityGuid + eventName: entityName bytesUploaded: title: Bytes uploaded - queries: - aws: - select: sum(aws.s3.BytesUploaded) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.bytesUploaded.Sum`) - from: DatastoreSample - where: provider='S3BucketRequests' - eventId: entityGuid - eventName: entityName + query: + select: sum(`provider.bytesUploaded.Sum`) + from: DatastoreSample + where: provider='S3BucketRequests' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awssnstopic/golden_metrics.yml b/definitions/infra-awssnstopic/golden_metrics.yml index 8acdec54a..2d0c6ee6f 100644 --- a/definitions/infra-awssnstopic/golden_metrics.yml +++ b/definitions/infra-awssnstopic/golden_metrics.yml @@ -1,42 +1,24 @@ publishedMessages: title: Published messages - queries: - aws: - select: sum(aws.sns.NumberOfMessagesPublished) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.numberOfMessagesPublished.Sum) - from: QueueSample - where: provider='SnsTopic' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.numberOfMessagesPublished.Sum) + from: QueueSample + where: provider='SnsTopic' + eventId: entityGuid + eventName: entityName deliveredNotifications: title: Delivered notifications - queries: - aws: - select: sum(aws.sns.NumberOfNotificationsDelivered) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.numberOfNotificationsDelivered.Sum) - from: QueueSample - where: provider='SnsTopic' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.numberOfNotificationsDelivered.Sum) + from: QueueSample + where: provider='SnsTopic' + eventId: entityGuid + eventName: entityName failedNotifications: title: Failed notifications - queries: - aws: - select: sum(aws.sns.NumberOfNotificationsFailed) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.numberOfNotificationsFailed.Sum) - from: QueueSample - where: provider='SnsTopic' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.numberOfNotificationsFailed.Sum) + from: QueueSample + where: provider='SnsTopic' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awssqsqueue/golden_metrics.yml b/definitions/infra-awssqsqueue/golden_metrics.yml index 65c9e8d74..b489c7063 100644 --- a/definitions/infra-awssqsqueue/golden_metrics.yml +++ b/definitions/infra-awssqsqueue/golden_metrics.yml @@ -1,42 +1,24 @@ receivedMessages: title: Received messages - queries: - aws: - select: sum(aws.sqs.NumberOfMessagesReceived) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.numberOfMessagesReceived.Sum) - from: QueueSample - where: provider='SqsQueue' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.numberOfMessagesReceived.Sum) + from: QueueSample + where: provider='SqsQueue' + eventId: entityGuid + eventName: entityName sentMessages: title: Sent messages - queries: - aws: - select: sum(aws.sqs.NumberOfMessagesSent) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(provider.numberOfMessagesSent.Sum) - from: QueueSample - where: provider='SqsQueue' - eventId: entityGuid - eventName: entityName + query: + select: sum(provider.numberOfMessagesSent.Sum) + from: QueueSample + where: provider='SqsQueue' + eventId: entityGuid + eventName: entityName oldestMessageAgeS: title: Approximate age of oldest message (s) - queries: - aws: - select: average(aws.sqs.ApproximateAgeOfOldestMessage) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(provider.approximateAgeOfOldestMessage.Average) - from: QueueSample - where: provider='SqsQueue' - eventId: entityGuid - eventName: entityName + query: + select: average(provider.approximateAgeOfOldestMessage.Average) + from: QueueSample + where: provider='SqsQueue' + eventId: entityGuid + eventName: entityName diff --git a/definitions/infra-awsstatesstatemachine/golden_metrics.yml b/definitions/infra-awsstatesstatemachine/golden_metrics.yml index f99aee6c8..d64b157c9 100644 --- a/definitions/infra-awsstatesstatemachine/golden_metrics.yml +++ b/definitions/infra-awsstatesstatemachine/golden_metrics.yml @@ -1,56 +1,32 @@ successfulExecutions: title: Successful Executions - queries: - aws: - select: sum(aws.states.ExecutionsSucceeded) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.executionsSucceeded.Sum`) - from: AwsStatesStateMachineSample - where: provider='AwsStatesStateMachine' - eventId: entityGuid - eventName: entityName + query: + select: sum(`provider.executionsSucceeded.Sum`) + from: AwsStatesStateMachineSample + where: provider='AwsStatesStateMachine' + eventId: entityGuid + eventName: entityName executionTimeMs: title: Execution Time (ms) - queries: - aws: - select: average(aws.states.ExecutionTime) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: average(`provider.executionTime.Average`) - from: AwsStatesStateMachineSample - where: provider='AwsStatesStateMachine' - eventId: entityGuid - eventName: entityName + query: + select: average(`provider.executionTime.Average`) + from: AwsStatesStateMachineSample + where: provider='AwsStatesStateMachine' + eventId: entityGuid + eventName: entityName failedExecutions: title: Failed Executions - queries: - aws: - select: sum(aws.states.ExecutionsFailed) - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.executionsFailed.Sum`) - from: AwsStatesStateMachineSample - where: provider='AwsStatesStateMachine' - eventId: entityGuid - eventName: entityName + query: + select: sum(`provider.executionsFailed.Sum`) + from: AwsStatesStateMachineSample + where: provider='AwsStatesStateMachine' + eventId: entityGuid + eventName: entityName errorRatio: title: Error ratio (%) - queries: - aws: - select: sum(aws.states.ExecutionsFailed) / sum(aws.states.ExecutionsStarted) * 100 - from: Metric - eventId: entity.guid - eventName: entity.name - awsSample: - select: sum(`provider.executionsFailed.Sum`) / sum(`provider.executionsStarted.Sum`) * 100 - from: AwsStatesStateMachineSample - where: provider='AwsStatesStateMachine' - eventId: entityGuid - eventName: entityName + query: + select: sum(`provider.executionsFailed.Sum`)/sum(`provider.executionsStarted.Sum`) * 100 + from: AwsStatesStateMachineSample + where: provider='AwsStatesStateMachine' + eventId: entityGuid + eventName: entityName