Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Main (unreleased)

- [BUGFIX] Statsd Integration: Adding logger instance to the statsd mapper instantiation. (@gaantunes)
Comment thread
rfratto marked this conversation as resolved.
Resolved

- [ENHANCEMENT] Update Cortex dependency to v1.10.0-92-g85c378182. (@rlankfo)

- [ENHANCEMENT] Update Loki dependency to v2.1.0-656-g0ae0d4da1. (@rlankfo)
Expand Down
5 changes: 4 additions & 1 deletion pkg/integrations/statsd_exporter/statsd_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ func New(log log.Logger, c *Config) (integrations.Integration, error) {
if c.ListenUDP == "" && c.ListenTCP == "" && c.ListenUnixgram == "" {
return nil, fmt.Errorf("at least one of UDP/TCP/Unixgram listeners must be used")
}
statsdMapper := &mapper.MetricMapper{MappingsCount: m.MappingsCount}
statsdMapper := &mapper.MetricMapper{
MappingsCount: m.MappingsCount,
Logger: log,
}
Comment thread
rfratto marked this conversation as resolved.
Resolved

if c.MappingConfig != nil {
cfgBytes, err := yaml.Marshal(c.MappingConfig)
Expand Down