dgraph-io / dgraph-io/dgraph

dgraph_active_mutations_total isn't available until after data is written

Open
#9,671 1 comment 0 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.