Skip to content

Add KWOK singular deployment for metrics instead of deployment template solution#149

Merged
eliranw merged 4 commits intomainfrom
eliranw/RUN-35097-status-exporter-deployment
Dec 23, 2025
Merged

Add KWOK singular deployment for metrics instead of deployment template solution#149
eliranw merged 4 commits intomainfrom
eliranw/RUN-35097-status-exporter-deployment

Conversation

@eliranw
Copy link
Copy Markdown
Contributor

@eliranw eliranw commented Dec 23, 2025

  • Add KWOK singular deployment for metrics instead of deployment template solution
  • Simplify integration tests and setup scripts
  • Add additional KWOK nodes to integration tests setup

}

// ExportForNode exports labels for a specific node
func (e *MultiNodeLabelsExporter) ExportForNode(nodeName string, nodeTopology *topology.NodeTopology) error {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd consider naming it SetLabelsForNode, the name ExportForNode is not intuitive for something that sets the labels and only returns an error, I'd expect this func to "export" something from the nodes

Comment on lines +87 to +91
for nodeName, nodeTopology := range snapshot {
if err := e.exportNode(nodeName, nodeTopology); err != nil {
log.Printf("Failed to refresh metrics for node %s: %v\n", nodeName, err)
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's a slow operation (not sure how slow), perhaps we can start a go routine that does it, and start it within the lock? That way we just trigger the sending of metrics every 10 seconds, and the sending itself happens in a separate go routine and takes how long it needs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed the comment, it was irrelevant

@eliranw eliranw merged commit 0d36e2b into main Dec 23, 2025
5 checks passed
@eliranw eliranw deleted the eliranw/RUN-35097-status-exporter-deployment branch December 23, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants