From a774d6fcf3b0780fa3e29a9957aac9f72909255b Mon Sep 17 00:00:00 2001 From: Manuel Moreno Date: Wed, 14 Feb 2024 17:34:33 +0100 Subject: [PATCH] AWS ECR (#1436) Co-authored-by: rodolfocal --- infra-awsecrrepository/definition.yml | 7 +++++++ infra-awsecrrepository/golden_metrics.yml | 9 +++++++++ infra-awsecrrepository/summary_metrics.yml | 14 ++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 infra-awsecrrepository/definition.yml create mode 100644 infra-awsecrrepository/golden_metrics.yml create mode 100644 infra-awsecrrepository/summary_metrics.yml diff --git a/infra-awsecrrepository/definition.yml b/infra-awsecrrepository/definition.yml new file mode 100644 index 000000000..3bb2c1174 --- /dev/null +++ b/infra-awsecrrepository/definition.yml @@ -0,0 +1,7 @@ +domain: INFRA +type: AWSECRREPOSITORY +configuration: + entityExpirationTime: DAILY + alertable: true +goldenTags: +- aws.accountId diff --git a/infra-awsecrrepository/golden_metrics.yml b/infra-awsecrrepository/golden_metrics.yml new file mode 100644 index 000000000..323782e8a --- /dev/null +++ b/infra-awsecrrepository/golden_metrics.yml @@ -0,0 +1,9 @@ +repositoryPullCount: + title: Repository Pull Count + unit: COUNT + queries: + aws: + select: latest(aws.ecr.RepositoryPullCount) + from: Metric + eventId: entity.guid + eventName: entity.name diff --git a/infra-awsecrrepository/summary_metrics.yml b/infra-awsecrrepository/summary_metrics.yml new file mode 100644 index 000000000..75317316e --- /dev/null +++ b/infra-awsecrrepository/summary_metrics.yml @@ -0,0 +1,14 @@ +providerAccountName: + title: AWS account + unit: STRING + tag: + key: providerAccountName +region: + title: Region + unit: STRING + tag: + key: aws.awsRegion +repositoryPullCount: + goldenMetric: repositoryPullCount + title: Repository Pull Count + unit: COUNT