-
Notifications
You must be signed in to change notification settings - Fork 162
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
Windows modular observ lib #1050
Conversation
62d9e89
to
ddacc8a
Compare
9446224
to
26b0127
Compare
235438d
to
b2e76d2
Compare
5e6a8be
to
c961582
Compare
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.
Looks good overall. A few nits here and there.
Mostly, I think we should get the dependencies reviewed/merged before this is merged. What do you think?
windows-mixin/jsonnetfile.json
Outdated
} | ||
}, | ||
"version": "master" | ||
"version": "vzhuravlev/jl-windows-new" |
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.
You'll want to have a follow-up PR to change this to master, or perhaps you can reference the specific commit SHA. I believe the branch usually gets deleted on merge.
windows-observ-lib/alerts.libsonnet
Outdated
// TODO: add scheduled tasks failed alerts, | ||
// time alerts, ntp delay alerts, disk running out of space predict alerts |
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.
Looks like these are all done, this can be removed?
// TODO: add scheduled tasks failed alerts, | |
// time alerts, ntp delay alerts, disk running out of space predict alerts |
// panels.systemThreads, | ||
// panels.systemExceptions, |
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.
Is there a problem with these? Should they also be removed from the windows-observ-lib?
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.
Did this get discussed? :)
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.
I'll check and make follow-up PR.
windows-observ-lib/jsonnetfile.json
Outdated
"subdir": "common-lib" | ||
} | ||
}, | ||
"version": "vzhuravlev/common-lib" |
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.
Should this get merged first? Given it's a requirement, we should probably have that nailed down with some certainty that the interface will not change.
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.
commonlib is ready for review. once we merge it, we can continue with windows lib.
windows-observ-lib/panels.libsonnet
Outdated
systemExceptions: | ||
commonlib.panels.all.timeSeries.base.new( | ||
'System calls and exceptions', | ||
targets=[ | ||
t.windowsSystemExceptions, | ||
t.windowsSystemCalls, | ||
], | ||
), | ||
systemThreads: | ||
commonlib.panels.all.timeSeries.base.new( | ||
'System threads', | ||
targets=[ | ||
t.windowsSystemThreads, | ||
], | ||
), |
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.
Same question as in dashboards.libsonnet
.. If these are unused, should they persist?
windows-observ-lib/panels.libsonnet
Outdated
CPU usage by different modes. | ||
||| | ||
), | ||
// TODO add why it is important, consider alert |
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.
Seems like the description adequately explains why this metric is important?
// TODO add why it is important, consider alert |
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.
thnks, removed
windows-observ-lib/utils.libsonnet
Outdated
@@ -0,0 +1,41 @@ | |||
{ |
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.
I think most of these are pretty common utils. I don't recall. Did we intend to merge these with grafonnet or with the common-lib?
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.
Thnks, Moved to commonlib
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.
This looks ready to go!
I'd wait until common-lib is merged, and update that reference in jsonnet bundler, but otherwise. 🚀
Co-authored-by: Vitaly <v-zhuravlev@users.noreply.github.com>
ecb0fc2
to
1d0eb76
Compare
![image](https://github.com/grafana/jsonnet-libs/assets/14870891/b36b6245-643a-426f-9745-5437d93815ad) | ||
Overview dashboard: | ||
![image](https://github.com/grafana/jsonnet-libs/assets/14870891/723df88c-a789-4e73-a85e-724d9ea06cd2) | ||
Logs dashboard: | ||
![image](https://github.com/grafana/jsonnet-libs/assets/14870891/ec136706-96c1-4bc4-b608-f7184327d845) | ||
Drill down disks dashboard: | ||
![image](https://github.com/grafana/jsonnet-libs/assets/14870891/dfcda70d-4c2e-494f-b092-7d37a13d65d1) |
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.
These should probably be rehosted in our GCP cluster rather than github's CDN?
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.
for integration, yes.
// panels.systemThreads, | ||
// panels.systemExceptions, |
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.
Did this get discussed? :)
cd windows-mixin
grr apply mixin.libsonnet
Checklist:
time
collector)Changelog:
Examples:
Fleet dash:
Overview dash:
Logs dash:
Disks dash: