-
Notifications
You must be signed in to change notification settings - Fork 2.5k
add darwin mixin #2236
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
add darwin mixin #2236
Conversation
Great, thanks! |
@discordianfish thanks for the feedback! I had assumed what I was doing was probably not correct but wanted to at least get this out there to get some feedback on what a better approach might be. I will attempt to update these to use a single dashboard with a promql query as you suggest. |
That would be perfect! But even if that doesn't work, I'd be okay with including a separate macos dashboard. |
Signed-off-by: Robbie Lankford <[email protected]>
Signed-off-by: Robbie Lankford <[email protected]>
…win mixin dashboard Signed-off-by: Robbie Lankford <[email protected]>
@discordianfish I've updated the Darwin dashboards introduced in this PR to use the internal_bytes and purgeable_bytes (introduced in #2240) metrics for the memory panels. I also looked into adding support for Darwin in the existing node dashboard using a promql expression with the |
I haven't looked into it closer, so dunno how feasiable it is to have them all in one dashboard. What issues did you run into? |
The only way I can tell how to determine the sysname in the dashboard (at runtime) is to create a new dashboard variable using This seems to work, but from here I can't seem to figure out how to conditionally display one set of metrics in a panel using promql based on the value of Another thought was to pass an argument to the mixin (perhaps on $._config ) and having the branching logic in jsonnet. Do you have any thoughts on this approach? |
closing in favor of #2351 |
@rlankfo I think to have both mac/linux on the same dashboard , we need this be implemented: |
awesome, thanks @v-zhuravlev. great work! |
This PR adds support for Darwin dashboards in the mixin. The memory usage statistics do not work with the existing dashboards as they use metrics gathered from Linux's meminfo collector. This updates the memory sections in Darwin dashboard to use the vmstat metrics collected in meminfo_darwin.go