Skip to content

metrics: Cache Performance #26227

Open
@peterbarnett03

Description

@peterbarnett03

Cache Performance Metrics

Right now we serve little information on the new caches and their performance, so this ticket looks to add some basic metrics to track.

These names track with how we currently do Parquet cache tracking.

Update the /metrics endpoint to serve the following metrics:

New Last Value Cache Metrics:

  • influxdb3_last_values_cache_response_duration_seconds_bucket: Time to complete LVC queries bucketed into 0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 10, inf seconds, per database, per cache (feat: query duration metrics in lvc #26388)
  • influxdb3_last_values_cache_response_duration_seconds_sum: Total time spent waiting on response from LVC, per database, per cache (feat: query duration metrics in lvc #26388)
  • influxdb3_last_values_cache_response_duration_seconds_count: Amount of queries to the LVC , per database, per cache. (feat: query duration metrics in lvc #26388)
  • influxdb3_last_values_cache_size_bytes: Total size of LVC in bytes, per database, per cache
  • influxdb3_last_values_cache_refresh_count: Total number of times the LVC has been refreshed

New Distinct Value Cache Metrics:

  • influxdb3_distinct_values_cache_response_duration_seconds_bucket: Time to complete DVC queries bucketed into 0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 10, inf seconds, per database, per cache
  • influxdb3_distinct_values_cache_response_duration_seconds_sum: Total time spent waiting on response from DVC, per database, per cache
  • influxdb3_distinct_values_cache_response_duration_seconds_count: Amount of queries to the DVC , per database, per cache.
  • influxdb3_distinct_values_cache_size_bytes: Total size of DVC in bytes, per database, per cache
  • influxdb3_distinct_values_cache_refresh_count: Total number of times the DVC has been refreshed

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions