Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Nov 21, 2023
1 parent b5b3176 commit 391f78c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions performance_measurement/metrics_api_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,12 @@ def start(self, apiclient: ApiClient, operator_name: str):
print(pod['metadata']['name'])
pod_name = pod['metadata']['name']
if pod_name == "etcd-anvil-control-plane":
pod_metrics = pod
pod_metrics['timestamp'] = pod['timestamp']
pod_metrics[pod_name] = pod
elif operator_name in pod_name:
pod_metrics = pod
pod_metrics['timestamp'] = pod['timestamp']
pod_metrics[pod_name] = pod

stats_buf.append(pod_metrics)
if pod_metrics:
stats_buf.append(pod_metrics)
if len(stats_buf) >= 100:
self.write_stats(stats_buf, self._sequence)
stats_buf = []
Expand Down

0 comments on commit 391f78c

Please sign in to comment.