Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Add size metric for head types #75

Merged
merged 1 commit into from
Jul 13, 2022
Merged

Add size metric for head types #75

merged 1 commit into from
Jul 13, 2022

Conversation

simonswine
Copy link
Collaborator

@simonswine simonswine commented Jul 13, 2022

Keeps head metrics per type

Example:

# HELP fire_head_profiles_created_total Total number of profiles created in the head
# TYPE fire_head_profiles_created_total counter
fire_head_profiles_created_total 83
# HELP fire_head_size_bytes Size of a particular in memory store within the head firedb block.
# TYPE fire_head_size_bytes gauge
fire_head_size_bytes{type="functions"} 45200
fire_head_size_bytes{type="mappings"} 672
fire_head_size_bytes{type="pprof-labels"} 4176
fire_head_size_bytes{type="profiles"} 236856
fire_head_size_bytes{type="stacktraces"} 41544
fire_head_size_bytes{type="strings"} 42688

Fixes #71

@simonswine simonswine marked this pull request as ready for review July 13, 2022 06:25
Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simonswine simonswine merged commit 4b0e05c into main Jul 13, 2022
@simonswine simonswine deleted the 20220712_add-size branch July 13, 2022 08:51
simonswine added a commit to simonswine/pyroscope that referenced this pull request Jun 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Size the head (not tsdb, but the deduplicatiningSlices)
2 participants