Skip to content

CloudWatch metric sink is not sending http_client_rtt_seconds (aggregated histogram) metrics to CloudWatch #21851

Answered by jszwedko
mkwan-amzn asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, it looks like the AWS CloudWatch sink does not support aggregated histograms:

match event.value() {
MetricValue::Counter { value } => Some(
MetricDatum::builder()
.metric_name(metric_name)
.value(*value)
.set_timestamp(timestamp)
.set_dimensions(dimensions)
.build(),
),
MetricValue::Distribution {
samples,
statistic: _,
} => Some(
MetricDatum::builder()
.metric_name(metric_name)
.set_values(Some(samples.iter().map(|s| s.value).collect()))
.set_counts(Some(samples.iter().map(|s| s.rate as f64).collect()))
.set_ti…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mkwan-amzn
Comment options

@jszwedko
Comment options

Answer selected by mkwan-amzn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants