Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-jeanne committed Jan 27, 2025
1 parent a8b37f5 commit 97a5d77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

### Grafana Mimir

* [FEATURE] Ingester/Distributor: Add support for exporting cost attribution metrics (`cortex_ingester_attributed_active_series`, `cortex_distributor_received_attributed_samples_total`, and `cortex_discarded_attributed_samples_total`) with labels specified by customers to a custom Prometheus registry. This feature enables more flexible billing data tracking. #10269
* [CHANGE] Ingester/Distributor: Prefix cost attribution metric labels with `attributed_` to prevent collisions with system cluster and namespace labels. #10509
* [FEATURE] Ingester/Distributor: Add support for exporting cost attribution metrics (`cortex_ingester_attributed_active_series`, `cortex_distributor_received_attributed_samples_total`, and `cortex_discarded_attributed_samples_total`) with labels specified by customers to a custom Prometheus registry. This feature enables more flexible billing data tracking. #10269 #10509
* [CHANGE] Querier: pass context to queryable `IsApplicable` hook. #10451
* [CHANGE] Distributor: OTLP and push handler replace all non-UTF8 characters with the unicode replacement character `\uFFFD` in error messages before propagating them. #10236
* [CHANGE] Querier: pass query matchers to queryable `IsApplicable` hook. #10256
Expand Down
2 changes: 1 addition & 1 deletion pkg/costattribution/active_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type ActiveSeriesTracker struct {
func addLabelsPrefix(labels []string) []string {
out := make([]string, 0, len(labels))
for _, l := range labels {
out = append(out, strings.Join([]string{usagePrefix, l}, "_"))
out = append(out, strings.Join([]string{usagePrefix, l}, ""))
}
return out
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/costattribution/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
defaultTrackerName = "cost-attribution"
missingValue = "__missing__"
overflowValue = "__overflow__"
usagePrefix = "attributed"
usagePrefix = "attributed_"
)

type Manager struct {
Expand Down

0 comments on commit 97a5d77

Please sign in to comment.