influxdata / influxdata/influxdb

Add coarser grained retention check metrics

Open
#14,446 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/storage difficulty/low
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Currently we track retention metrics by org, bucket etc.

https://github.com/influxdata/influxdb/blob/236322d86b557b4e74c62858db638a4ddead0a17/storage/metrics.go#L42-L73

I would like some extra metrics that don't include org_id or bucket_id.

It will make it easier to aggregate the metrics. Considering other metrics where we have done this, idiomatic field names for these new metrics would probably be: EngineChecks and EngineChecksDuration. Metric names probably storage_retention_engine_checks_total and storage_retention_engine_check_duration_seconds.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at storage/metrics.go lines 42-73, where the existing retention metrics are defined, and compare the current org- and bucket-scoped fields with the requested aggregate metrics. Done means exposing EngineChecks and EngineChecksDuration with the names storage_retention_engine_checks_total and storage_retention_engine_check_duration_seconds, without org_id or bucket_id.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.