Skip to content

Commit d8f887a

Browse files
authored
fix(metrics): Stop logging statsd metric per project key (#1295)
It seems that we hit a limit by submitting too many statsd metrics, so let's stop emitting BucketCostPerProjectKey.
1 parent b59b6d5 commit d8f887a

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

relay-metrics/src/aggregation.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,11 +1518,6 @@ impl Aggregator {
15181518
relay_statsd::metric!(
15191519
gauge(MetricGauges::BucketsCost) = self.cost_tracker.total_cost as u64
15201520
);
1521-
for cost in self.cost_tracker.cost_per_project_key.values() {
1522-
relay_statsd::metric!(
1523-
histogram(MetricHistograms::BucketsCostPerProjectKey) = *cost as f64
1524-
);
1525-
}
15261521

15271522
let mut buckets = HashMap::<ProjectKey, Vec<Bucket>>::new();
15281523

relay-metrics/src/statsd.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ pub enum MetricHistograms {
103103
/// - `backdated`: A flag indicating whether the metric was reported within the `initial_delay`
104104
/// time period (`false`) or after the initial delay has expired (`true`).
105105
BucketsDelay,
106-
107-
/// The storage cost of metrics buckets stored Relay's metrics aggregator, for a project key.
108-
///
109-
/// See also [`MetricGauges::BucketsCost`].
110-
BucketsCostPerProjectKey,
111106
}
112107

113108
impl HistogramMetric for MetricHistograms {
@@ -117,7 +112,6 @@ impl HistogramMetric for MetricHistograms {
117112
Self::BucketsFlushedPerProject => "metrics.buckets.flushed_per_project",
118113
Self::BucketRelativeSize => "metrics.buckets.relative_bucket_size",
119114
Self::BucketsDelay => "metrics.buckets.delay",
120-
Self::BucketsCostPerProjectKey => "metrics.buckets.cost_per_project_key",
121115
}
122116
}
123117
}

0 commit comments

Comments
 (0)