Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "structured log schema",
"description": "json schema for the cloudwatch agent k8s structured log",
"type": "object",

"properties": {
"ClusterName": {},
"Type": {},
"Sources": {},
"Timestamp": {},
"Version": {},
"PlatformType": {},
"persistent_volume_count": {},
"CloudWatchMetrics": {}
},
"required": [
"ClusterName",
"Type",
"Sources",
"Timestamp",
"Version",
"PlatformType",
"CloudWatchMetrics"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "structured log schema",
"description": "json schema for the cloudwatch agent k8s structured log",
"type": "object",

"properties": {
"ClusterName": {},
"Type": {},
"Sources": {},
"Timestamp": {},
"Version": {},
"Namespace": {},
"PersistentVolumeClaimName": {},
"PlatformType": {},
"persistent_volume_claim_status_bound": {},
"persistent_volume_claim_status_lost": {},
"persistent_volume_claim_count": {},
"persistent_volume_claim_status_pending": {},
"CloudWatchMetrics": {}
},
"required": [
"ClusterName",
"Type",
"Sources",
"Timestamp",
"Version",
"Namespace",
"PersistentVolumeClaimName",
"PlatformType",
"CloudWatchMetrics"
]
}
6 changes: 6 additions & 0 deletions test/metric_value_benchmark/eks_resources/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ var (
eksNodeEfaSchema string
//go:embed test_schemas/node_ebs.json
eksNodeEBSSchema string
//go:embed test_schemas/persistent_volume.json
eksPersistentVolumeSchema string
//go:embed test_schemas/persistent_volume_claim.json
eksPersistentVolumeClaimSchema string

EksClusterValidationMap = map[string]string{
"Cluster": eksClusterSchema,
Expand Down Expand Up @@ -93,6 +97,8 @@ var (
"PodEFA": eksPodEfaSchema,
"NodeEFA": eksNodeEfaSchema,
"NodeEBS": eksNodeEBSSchema,
"PersistentVolume": eksPersistentVolumeSchema,
"PersistentVolumeClaim": eksPersistentVolumeClaimSchema,
}

EksClusterFrequencyValidationMap = map[string]int{
Expand Down