Skip to content

Commit 821df7f

Browse files
authored
Merge pull request #278 from carapace-sh/fix-otel-enrichment
fix otel enrichment
2 parents b6b157e + b0df283 commit 821df7f

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

cmd/carapace-aws/cmd/botocore/aws.cloudwatch.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ commands:
357357
--metric-widget=!: A JSON string that defines the bitmap graph to be retrieved.
358358
--output-format=: The format of the resulting image.
359359
- name: get-otel-enrichment
360+
aliases:
361+
- get-o-tel-enrichment
360362
description: Returns the current status of vended metric enrichment for the account, including whether CloudWatch vended metrics are enriched with resource ARN and resource tag labels and queryable using PromQL.
361363
flags:
362364
--cli-input-json=: Read arguments from the JSON string provided.
@@ -689,6 +691,8 @@ commands:
689691
description: The array of the names of metric streams to start streaming.
690692
nargs: -1
691693
- name: start-otel-enrichment
694+
aliases:
695+
- start-o-tel-enrichment
692696
description: Enables enrichment and PromQL access for CloudWatch vended metrics for [supported Amazon Web Services resources](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html) in the account.
693697
flags:
694698
--cli-input-json=: Read arguments from the JSON string provided.
@@ -704,6 +708,8 @@ commands:
704708
description: The array of the names of metric streams to stop streaming.
705709
nargs: -1
706710
- name: stop-otel-enrichment
711+
aliases:
712+
- stop-o-tel-enrichment
707713
description: Disables enrichment and PromQL access for CloudWatch vended metrics for [supported Amazon Web Services resources](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html) in the account.
708714
flags:
709715
--cli-input-json=: Read arguments from the JSON string provided.

cmd/carapace-spec-botocore/cmd/customizations/cloudwatch.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,17 @@ func init() {
4141
})
4242
return nil
4343
}
44+
45+
customizations["cloudwatch.get-otel-enrichment"] = func(cmd *command.Command) error {
46+
cmd.Aliases = append(cmd.Aliases, "get-o-tel-enrichment")
47+
return nil
48+
}
49+
customizations["cloudwatch.start-otel-enrichment"] = func(cmd *command.Command) error {
50+
cmd.Aliases = append(cmd.Aliases, "start-o-tel-enrichment")
51+
return nil
52+
}
53+
customizations["cloudwatch.stop-otel-enrichment"] = func(cmd *command.Command) error {
54+
cmd.Aliases = append(cmd.Aliases, "stop-o-tel-enrichment")
55+
return nil
56+
}
4457
}

0 commit comments

Comments
 (0)