From b0f585cd13d71106403e007f3a379bc8219c7e8a Mon Sep 17 00:00:00 2001 From: Manuel Moreno Date: Thu, 8 Feb 2024 18:47:32 +0100 Subject: [PATCH 1/3] AWS PrivateLink Service --- .../definition.yml | 7 +++ .../golden_metrics.yml | 45 +++++++++++++++++++ .../summary_metrics.yml | 26 +++++++++++ 3 files changed, 78 insertions(+) create mode 100644 entity-types/infra-awsprivatelinkservice/definition.yml create mode 100644 entity-types/infra-awsprivatelinkservice/golden_metrics.yml create mode 100644 entity-types/infra-awsprivatelinkservice/summary_metrics.yml diff --git a/entity-types/infra-awsprivatelinkservice/definition.yml b/entity-types/infra-awsprivatelinkservice/definition.yml new file mode 100644 index 000000000..3d17bdc0b --- /dev/null +++ b/entity-types/infra-awsprivatelinkservice/definition.yml @@ -0,0 +1,7 @@ +domain: INFRA +type: AWSPRIVATELINKSERVICE +configuration: + entityExpirationTime: DAILY + alertable: true +goldenTags: +- aws.accountId diff --git a/entity-types/infra-awsprivatelinkservice/golden_metrics.yml b/entity-types/infra-awsprivatelinkservice/golden_metrics.yml new file mode 100644 index 000000000..fe1a89767 --- /dev/null +++ b/entity-types/infra-awsprivatelinkservice/golden_metrics.yml @@ -0,0 +1,45 @@ +bytesProcessed: + title: Bytes Processed + unit: NA + queries: + aws: + select: latest(aws.privatelinkservices.BytesProcessed) + from: Metric + eventId: entity.guid + eventName: entity.name +newConnections: + title: New Connections + unit: COUNT + queries: + aws: + select: latest(aws.privatelinkservices.NewConnections) + from: Metric + eventId: entity.guid + eventName: entity.name +bytesProcessed: + title: Bytes Processed + unit: BYTES + queries: + aws: + select: latest(aws.privatelinkservices.BytesProcessed) + from: Metric + eventId: entity.guid + eventName: entity.name +activeConnections: + title: Active Connections + unit: COUNT + queries: + aws: + select: latest(aws.privatelinkservices.ActiveConnections) + from: Metric + eventId: entity.guid + eventName: entity.name +bytesProcessed: + title: Bytes Processed + unit: BYTES + queries: + aws: + select: latest(aws.privatelinkservices.BytesProcessed) + from: Metric + eventId: entity.guid + eventName: entity.name diff --git a/entity-types/infra-awsprivatelinkservice/summary_metrics.yml b/entity-types/infra-awsprivatelinkservice/summary_metrics.yml new file mode 100644 index 000000000..749a86ec4 --- /dev/null +++ b/entity-types/infra-awsprivatelinkservice/summary_metrics.yml @@ -0,0 +1,26 @@ +providerAccountName: + title: AWS account + unit: STRING + tag: + key: providerAccountName +region: + title: Region + unit: STRING + tag: + key: aws.awsRegion +bytesProcessed: + goldenMetric: bytesProcessed + title: Bytes Processed + unit: BYTES +newConnections: + goldenMetric: newConnections + title: New Connections + unit: COUNT +activeConnections: + goldenMetric: activeConnections + title: Active Connections + unit: COUNT +rstPacketsSent: + goldenMetric: rstPacketsSent + title: Rst Packets Sent + unit: COUNT From 1f6abab4432d7a772b5c8b6868a69c4001af75d1 Mon Sep 17 00:00:00 2001 From: Manuel Moreno Date: Wed, 14 Feb 2024 17:47:55 +0100 Subject: [PATCH 2/3] Fix unit and remove unreferenced summary metric --- entity-types/infra-awsprivatelinkservice/golden_metrics.yml | 2 +- entity-types/infra-awsprivatelinkservice/summary_metrics.yml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/entity-types/infra-awsprivatelinkservice/golden_metrics.yml b/entity-types/infra-awsprivatelinkservice/golden_metrics.yml index fe1a89767..fe011a6fd 100644 --- a/entity-types/infra-awsprivatelinkservice/golden_metrics.yml +++ b/entity-types/infra-awsprivatelinkservice/golden_metrics.yml @@ -1,6 +1,6 @@ bytesProcessed: title: Bytes Processed - unit: NA + unit: BYTES queries: aws: select: latest(aws.privatelinkservices.BytesProcessed) diff --git a/entity-types/infra-awsprivatelinkservice/summary_metrics.yml b/entity-types/infra-awsprivatelinkservice/summary_metrics.yml index 749a86ec4..8b3309b91 100644 --- a/entity-types/infra-awsprivatelinkservice/summary_metrics.yml +++ b/entity-types/infra-awsprivatelinkservice/summary_metrics.yml @@ -20,7 +20,3 @@ activeConnections: goldenMetric: activeConnections title: Active Connections unit: COUNT -rstPacketsSent: - goldenMetric: rstPacketsSent - title: Rst Packets Sent - unit: COUNT From 70352faa55efea0b10da7f311a2122a57a05490f Mon Sep 17 00:00:00 2001 From: Manuel Moreno Date: Wed, 14 Feb 2024 18:39:49 +0100 Subject: [PATCH 3/3] Repeated golden metric --- .../golden_metrics.yml | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/entity-types/infra-awsprivatelinkservice/golden_metrics.yml b/entity-types/infra-awsprivatelinkservice/golden_metrics.yml index fe011a6fd..d9f4d43dc 100644 --- a/entity-types/infra-awsprivatelinkservice/golden_metrics.yml +++ b/entity-types/infra-awsprivatelinkservice/golden_metrics.yml @@ -16,15 +16,6 @@ newConnections: from: Metric eventId: entity.guid eventName: entity.name -bytesProcessed: - title: Bytes Processed - unit: BYTES - queries: - aws: - select: latest(aws.privatelinkservices.BytesProcessed) - from: Metric - eventId: entity.guid - eventName: entity.name activeConnections: title: Active Connections unit: COUNT @@ -33,13 +24,4 @@ activeConnections: select: latest(aws.privatelinkservices.ActiveConnections) from: Metric eventId: entity.guid - eventName: entity.name -bytesProcessed: - title: Bytes Processed - unit: BYTES - queries: - aws: - select: latest(aws.privatelinkservices.BytesProcessed) - from: Metric - eventId: entity.guid - eventName: entity.name + eventName: entity.name \ No newline at end of file