Dgraph database helps administrators by providing metrics on Dgraph instance activity, disk activity, server node health, memory, and Raft leadership
Metric | Description |
---|---|
go_goroutines | Total number of goroutines currently running in Dgraph. |
dgraph_active_mutations_total | Total number of mutations currently running. |
dgraph_pending_proposals_total | Total pending Raft proposals. |
dgraph_pending_queries_total | Total number of queries in progress. |
dgraph_num_queries_total{method="Server.Mutate"} | Total number of mutations run in Dgraph. |
dgraph_num_queries_total{method="Server.Query"} | Total number of queries run in Dgraph. |
Metric | Description |
---|---|
badger_read_num_vlog | Total count of reads by badger in vlog |
badger_write_num_vlog | Total count of writes by Badger in vlog |
badger_read_bytes_vlog | Total bytes read by Badger |
badger_write_bytes_vlog | Total bytes written by Badger |
badger_read_bytes_lsm | Total bytes read by Badger |
badger_write_bytes_l0 | Total bytes written by Badger |
badger_write_bytes_compaction | Total bytes written by Badger |
badger_get_num_lsm | Total count of LSM gets |
badger_get_num_memtable | Total count of LSM gets from memtable |
badger_hit_num_lsm_bloom_filter | Total count of LSM bloom hits |
badger_get_num_user | Total count of calls to Badgerβs get |
badger_put_num_user | Total count of calls to Badgerβs put |
badger_write_bytes_user | Total bytes written by user |
badger_get_with_result_num_user | Total count of calls to Badgerβs get that returned value |
badger_iterator_num_user | Total count of iterators made in badger |
badger_size_bytes_lsm | Size of the LSM in bytes |
badger_size_bytes_vlog | Size of the value log in bytes |
badger_write_pending_num_memtable | Total count of pending writes |
badger_compaction_current_num_lsm | Number of tables being actively compacted |
Metric | Description |
---|---|
badger_disk_reads_total | Total count of disk reads in Badger |
badger_disk_writes_total | Total count of disk writes in Badger |
badger_gets_total | Total count of calls to Badgerβs get |
badger_memtable_gets_total | Total count of memtable accesses to Badgerβs |
get . badger_puts_total | Total count of calls to Badgerβs put |
badger_read_bytes | Total bytes read from Badger |
badger_lsm_bloom_hits_total | Total number of LSM tree bloom hits |
badger_written_bytes | Total bytes written to Badger |
badger_lsm_size_bytes | Total size in bytes of the LSM tree |
badger_vlog_size_bytes | Total size in bytes of the value log |
Metric | Description |
---|---|
go_memstats_gc_cpu_fraction | The fraction of this programβs available CPU time used by the GC since the program started. |
go_memstats_heap_idle_bytes | Number of heap bytes waiting to be used. |
go_memstats_heap_inuse_bytes | Number of heap bytes that are in use. |
Metric | Description |
---|---|
dgraph_alpha_health_status | Value is 1 when the Alpha node is ready to accept requests; otherwise 0. |
dgraph_max_assigned_ts | Latest max assigned timestampβall Alpha nodes within the same Alpha group should show the same timestamp if theyβre in sync |
dgraph_txn_aborts_total | Shows the total number of server-initiated transaction aborts that have occurred on the Alpha node. |
dgraph_txn_commits_total | Shows the total number of successful commits that have occurred on the Alpha node. |
dgraph_txn_discards_total | Shows the total number of client-initiated transaction discards that have occurred on the Alpha node. This is incremented when the client calls for a transaction discard, such as using the Dgraph Go clientβs txn.Discard function. |
idle
and inuse
metrics give you a better sense of the active memory usage of the
Dgraph process. The process memory metric shows the memory usage as measured by
the operating system.
By looking at all three metrics you can see how much memory a Dgraph process is
holding from the operating system and how much is actively in use.
Metric | Description |
---|---|
dgraph_memory_idle_bytes | Estimated amount of memory held idle that could be reclaimed by the OS |
dgraph_memory_inuse_bytes | Total memory usage in bytes (sum of heap usage and stack usage) |
dgraph_memory_proc_bytes | Total memory usage in bytes of the Dgraph processβequivalent to resident set size on Linux |
Metric | Description |
---|---|
dgraph_raft_has_leader | Value is 1 when the node has a leader; otherwise 0. |
dgraph_raft_is_leader | Value is 1 when the node is the leader of its group; otherwise 0. |
dgraph_raft_leader_changes_total | The total number of leader changes seen by this node. |