Skip to content

Conversation

schmikei
Copy link
Contributor

@schmikei schmikei commented Oct 7, 2025

Updates the Apache Mesos mixin to use commonlib and g.libsonnet

Apache Mesos overview
image
image

Apache Mesos logs overview
image

Improvement to sample app: grafana/integration-sample-apps#72

@schmikei schmikei changed the title Apache Mesos Mixin Modernization (WIP) Apache Mesos Mixin Modernization Oct 8, 2025
@schmikei schmikei marked this pull request as ready for review October 8, 2025 17:09
@schmikei schmikei requested a review from a team as a code owner October 8, 2025 17:09
@schmikei schmikei requested a review from Dasomeone October 8, 2025 17:12
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.

Nothing new here, structure and layout looks great, just the usage of common-lib :)

+ g.panel.stat.options.withGraphMode('none')
+ g.panel.stat.panelOptions.withDescription('Master uptime in seconds'),
cpusAvailablePanel:
g.panel.stat.new('CPUS available')
Copy link
Member

Choose a reason for hiding this comment

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

Tiny suggestion here, entirely up to you if you agree?

Suggested change
g.panel.stat.new('CPUS available')
g.panel.stat.new('CPUs available')

local signals = this.signals,

masterUptimePanel:
g.panel.stat.new('Master uptime')
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 this to use the common-lib stat panel?
Same throughout for any g.panel.stat panels

+ g.panel.stat.options.withGraphMode('none')
+ g.panel.stat.panelOptions.withDescription('CPUs available in the cluster'),
memoryAvailablePanel:
g.panel.stat.new('Memory available')
Copy link
Member

Choose a reason for hiding this comment

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

As with the other PRs, can you update the memory panels to use the common lib approach instead of g.panel.stat?

+ g.panel.stat.panelOptions.withDescription('GPUs available in the cluster'),

diskAvailablePanel:
g.panel.stat.new('Disk available')
Copy link
Member

Choose a reason for hiding this comment

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

Similarly for all the disk panels, we have common-lib` disk panels https://github.com/grafana/jsonnet-libs/tree/master/common-lib/common/panels/disk that would be great to use

Comment on lines +28 to +29


Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

Comment on lines +37 to +38


Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

Comment on lines +5 to +12
local mixin = mixinlib.new()
+ mixinlib.withConfigMixin(
{
filteringSelecter: config.filteringSelector,
uid: config.uid,
enableLokiLogs: true,
}
);
Copy link
Member

Choose a reason for hiding this comment

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

Formatting issue here?

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