-
Notifications
You must be signed in to change notification settings - Fork 177
Apache Mesos Mixin Modernization #1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Apache Mesos Mixin Modernization #1488
Conversation
…i/jsonnet-libs into chore/apache-mesos-modernization
…pache-mesos-modernization
There was a problem hiding this 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') |
There was a problem hiding this comment.
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?
g.panel.stat.new('CPUS available') | |
g.panel.stat.new('CPUs available') |
local signals = this.signals, | ||
|
||
masterUptimePanel: | ||
g.panel.stat.new('Master uptime') |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local mixin = mixinlib.new() | ||
+ mixinlib.withConfigMixin( | ||
{ | ||
filteringSelecter: config.filteringSelector, | ||
uid: config.uid, | ||
enableLokiLogs: true, | ||
} | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting issue here?
Updates the Apache Mesos mixin to use commonlib and g.libsonnet
Apache Mesos overview


Apache Mesos logs overview

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