Skip to content

Commit

Permalink
convert seconds to ms
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Nov 28, 2024
1 parent 86f6435 commit cf987fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/gcp/fix_plugin_gcp/resources/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,8 @@ def collect_usage_metrics(self, builder: GraphBuilder) -> List[GcpMonitoringQuer
period=delta,
ref_id=f"{self.kind}/{self.id}/{self.region().id}",
metric_name=MetricName.Latency,
normalization=normalizer_factory.milliseconds(),
# convert seconds to milliseconds
normalization=normalizer_factory.milliseconds(lambda x: round(x * 1000, ndigits=4)),
stat=stat,
project_id=builder.project.id,
metric_filters={
Expand Down

0 comments on commit cf987fd

Please sign in to comment.