Skip to content

Conversation

@schmikei
Copy link
Contributor

@schmikei schmikei commented Oct 10, 2025

Presto overview:

image image

Presto coordinator:

image image

Presto worker:
image
image

Presto logs:
image

@schmikei schmikei marked this pull request as ready for review October 13, 2025 14:28
@schmikei schmikei requested a review from a team as a code owner October 13, 2025 14:28
@schmikei schmikei requested a review from Dasomeone October 13, 2025 14:29
Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

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

Layout and structurally looks great to me, just a few panels I think that we can safely convert over to use the premade common-lib components

Comment on lines +114 to +140
coordinatorNonheapMemoryUsage:
g.panel.gauge.new('Non-heap memory usage')
+ g.panel.gauge.queryOptions.withTargets(signals.coordinator.nonheapMemoryUsage.asTarget())
+ g.panel.gauge.panelOptions.withDescription('Non-heap memory usage')
+ g.panel.gauge.standardOptions.withUnit('percentunit')
+ g.panel.gauge.standardOptions.thresholds.withSteps([
g.panel.gauge.standardOptions.threshold.step.withColor('light-green')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0),
g.panel.gauge.standardOptions.threshold.step.withColor('#EAB839')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.7),
g.panel.gauge.standardOptions.threshold.step.withColor('light-red')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.8),
]),

coordinatorHeapMemoryUsage:
g.panel.gauge.new('Heap memory usage')
+ g.panel.gauge.queryOptions.withTargets(signals.coordinator.heapMemoryUsage.asTarget())
+ g.panel.gauge.panelOptions.withDescription('Heap memory usage')
+ g.panel.gauge.standardOptions.thresholds.withSteps([
g.panel.gauge.standardOptions.threshold.step.withColor('light-green')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0),
g.panel.gauge.standardOptions.threshold.step.withColor('#EAB839')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.7),
g.panel.gauge.standardOptions.threshold.step.withColor('light-red')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.8),
])
+ g.panel.gauge.standardOptions.withUnit('percentunit'),
Copy link
Member

Choose a reason for hiding this comment

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

Could you update these to use the common-lib memory panels?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Dasomeone looking into this more, but just confirming are we moving away from the gauge panel here in favor of a stat?

      commonlib.panels.memory.stat.usage.new()

=>
image

vs
image

Copy link
Member

Choose a reason for hiding this comment

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

Oh hmm that's a good point. I think there's a case to be made for either. I do prefer the gauge for this actually, so apologies for suggesting that.

I think in fact we could make a case for adding a good common-lib gauge with standard settings, so for now we can keep this as-is!

Again, apologies 😅

Copy link
Member

@Dasomeone Dasomeone left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the pointer on the memory stat panels, the gauge does indeed look better for this usecase

Comment on lines +114 to +140
coordinatorNonheapMemoryUsage:
g.panel.gauge.new('Non-heap memory usage')
+ g.panel.gauge.queryOptions.withTargets(signals.coordinator.nonheapMemoryUsage.asTarget())
+ g.panel.gauge.panelOptions.withDescription('Non-heap memory usage')
+ g.panel.gauge.standardOptions.withUnit('percentunit')
+ g.panel.gauge.standardOptions.thresholds.withSteps([
g.panel.gauge.standardOptions.threshold.step.withColor('light-green')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0),
g.panel.gauge.standardOptions.threshold.step.withColor('#EAB839')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.7),
g.panel.gauge.standardOptions.threshold.step.withColor('light-red')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.8),
]),

coordinatorHeapMemoryUsage:
g.panel.gauge.new('Heap memory usage')
+ g.panel.gauge.queryOptions.withTargets(signals.coordinator.heapMemoryUsage.asTarget())
+ g.panel.gauge.panelOptions.withDescription('Heap memory usage')
+ g.panel.gauge.standardOptions.thresholds.withSteps([
g.panel.gauge.standardOptions.threshold.step.withColor('light-green')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0),
g.panel.gauge.standardOptions.threshold.step.withColor('#EAB839')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.7),
g.panel.gauge.standardOptions.threshold.step.withColor('light-red')
+ g.panel.gauge.standardOptions.threshold.step.withValue(0.8),
])
+ g.panel.gauge.standardOptions.withUnit('percentunit'),
Copy link
Member

Choose a reason for hiding this comment

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

Oh hmm that's a good point. I think there's a case to be made for either. I do prefer the gauge for this actually, so apologies for suggesting that.

I think in fact we could make a case for adding a good common-lib gauge with standard settings, so for now we can keep this as-is!

Again, apologies 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants