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