Skip to content

Commit

Permalink
fix: moved method to make collection correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
1101-1 committed Nov 29, 2024
1 parent abfcfe8 commit 738d5e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/gcp/fix_plugin_gcp/resources/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,8 @@ def post_process_instance(self, builder: GraphBuilder, source: Json) -> None:
if total_bytes:
self._resource_usage["processed_bytes"] = dict(total_bytes)

self.collect_backends(builder)

def collect_usage_metrics(self, builder: GraphBuilder) -> List[GcpMonitoringQuery]:
queries: List[GcpMonitoringQuery] = []
delta = builder.metrics_delta
Expand Down Expand Up @@ -1796,7 +1798,7 @@ def collect_usage_metrics(self, builder: GraphBuilder) -> List[GcpMonitoringQuer

return queries

def post_process(self, graph_builder: GraphBuilder, source: Json) -> None:
def collect_backends(self, graph_builder: GraphBuilder) -> None:
if not self.target:
return
backend_services = graph_builder.nodes(clazz=GcpBackendService)
Expand Down

0 comments on commit 738d5e9

Please sign in to comment.