Skip to content

Commit f33e04e

Browse files
prometheus_connect: Store "variance" operation result with the correct key
Signed-off-by: shimon-armis <[email protected]>
1 parent 3f97e4d commit f33e04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus_api_client/prometheus_connect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def get_metric_aggregation(
485485
elif operation == "deviation":
486486
aggregated_values["deviation"] = numpy.std(np_array)
487487
elif operation == "variance":
488-
aggregated_values["deviation"] = numpy.var(np_array)
488+
aggregated_values["variance"] = numpy.var(np_array)
489489
else:
490490
raise TypeError("Invalid operation: " + operation)
491491
return aggregated_values

0 commit comments

Comments
 (0)