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 :)

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

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.

Thank you for using the new common lib, but I think the extra setup steps can be simplified a fair bit by just utilising the common-lib defaults

Comment on lines 14 to 17
+ g.panel.stat.standardOptions.withUnit('s')
+ g.panel.stat.standardOptions.color.withMode('fixed')
+ g.panel.stat.standardOptions.color.withFixedColor('light-green')
+ g.panel.stat.options.withGraphMode('none')
Copy link
Member

Choose a reason for hiding this comment

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

Should be able to delete these lines & similar across all the ones that are common-lib usages.

Unless these are deliberately left here to override the common settings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll go ahead and delete them 👍 will be easier to apply styles across the board this way

Copy link

@aalhour aalhour left a comment

Choose a reason for hiding this comment

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

LGTM, however I'm not too deep into grafonnet and jsonnet-libs yet.

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.

3 participants