Skip to content

Commit cae4e15

Browse files
abhijatromange
authored andcommitted
server: Fix metric name (#5829)
A metric was copy-pasted which resulted in a duplicate name. Replaces the second name with defrag_objects_moved Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io>
1 parent 65acd60 commit cae4e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/server_family.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ void PrintPrometheusMetrics(uint64_t uptime, const Metrics& m, DflyCmd* dfly_cmd
19461946
m.shard_stats.defrag_task_invocation_total, COUNTER, &resp->body());
19471947
AppendMetricWithoutLabels("defrag_attempts", "Objects examined",
19481948
m.shard_stats.defrag_attempt_total, COUNTER, &resp->body());
1949-
AppendMetricWithoutLabels("defrag_invocations", "Objects moved",
1949+
AppendMetricWithoutLabels("defrag_objects_moved", "Objects moved",
19501950
m.shard_stats.defrag_realloc_total, COUNTER, &resp->body());
19511951
}
19521952

0 commit comments

Comments
 (0)