dgraph_active_mutations_total isn't available until after data is written
Open
Nobody has claimed this yet.
bug
Stale
- Dominant language
- Go
- Stars
- 21.8k
- Forks
- 1.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 9
Description
Upon a fresh installation of Dgraph, the "dgraph_active_mutations_total" count is not available when calling the /metrics endpoint.
Data must be written first, then the metric becomes available.
This should show zero when no data has been written.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue on a fresh Dgraph installation by querying the /metrics endpoint before and after writing data. Find where dgraph_active_mutations_total is registered or exposed, and consider the work complete when a fresh instance reports the metric with a value of zero before any data is written.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- databases, observability
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100