Skip to content

Conversation

@elek
Copy link
Contributor

@elek elek commented May 15, 2025

Adds a new RawVal type to store raw float64 values without any aggregation (histogram, sum, etc).
This provides a simpler alternative to FloatVal when only the most recent value is needed.

With high cardinality data, it's important to use only minimal fields (especially as Prometheus/Victoria can calculate the sum/min/max aggregations)

@zeebo
Copy link
Member

zeebo commented May 15, 2025

if we only need the most recent value, can the thing being monitored be a StatSource instead?

@elek
Copy link
Contributor Author

elek commented May 19, 2025

if we only need the most recent value, can the thing being monitored be a StatSource instead?

StatSource is harder to use, I would prefer to provide the simplicity of the Scope, but with limited number of aggregations.

Adds a new RawVal type to store raw float64 values without any aggregation (histogram, sum, etc).
This provides a simpler alternative to FloatVal when only the most recent value is needed.

With high cardinality data, it's important to use only minimal fields (especially as Prometheus/Victoria can calculate the sum/min/max aggregations)
@egonelbre egonelbre merged commit a1546ad into spacemonkeygo:master May 20, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants