Skip to content

[*] exclude MetricDef from MeasurementEnvelope#787

Merged
pashagolub merged 1 commit intomasterfrom
remove-metricdef-from-measurement
Jun 9, 2025
Merged

[*] exclude MetricDef from MeasurementEnvelope#787
pashagolub merged 1 commit intomasterfrom
remove-metricdef-from-measurement

Conversation

@pashagolub
Copy link
Copy Markdown
Collaborator

Sink doesn't need to know all information about metric so passing the whole definition is an overkill. This will decrease a memory consumption

@pashagolub pashagolub self-assigned this Jun 6, 2025
@pashagolub pashagolub added metrics Metrics related issues refactoring Something done as it should've been done from the start sinks Where and how to store monitored data labels Jun 6, 2025
@coveralls
Copy link
Copy Markdown

coveralls commented Jun 6, 2025

Pull Request Test Coverage Report for Build 15536245462

Details

  • 0 of 19 (0.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 60.22%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/reaper/reaper.go 0 1 0.0%
internal/reaper/metric.go 0 3 0.0%
internal/sinks/multiwriter.go 0 6 0.0%
internal/sinks/prometheus.go 0 9 0.0%
Totals Coverage Status
Change from base Build 15536091827: -0.2%
Covered Lines: 2681
Relevant Lines: 4452

💛 - Coveralls

@pashagolub pashagolub force-pushed the remove-metricdef-from-measurement branch from 0fc6638 to a51dd7f Compare June 6, 2025 14:10
Sink doesn't need to know all information about metric so passing
the whole definition is an overkill. This will decrease a memory
consumption. Instead implement `MetricsDefiner` interface for sinks
that needs metric specific information, e.g. gauges for Prometheus
@pashagolub pashagolub force-pushed the remove-metricdef-from-measurement branch from a51dd7f to 3cb6e11 Compare June 9, 2025 13:54
@pashagolub pashagolub merged commit 778028d into master Jun 9, 2025
8 checks passed
@pashagolub pashagolub deleted the remove-metricdef-from-measurement branch June 9, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metrics Metrics related issues refactoring Something done as it should've been done from the start sinks Where and how to store monitored data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants