Skip to content
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

feat: added windows volumes example #296

Merged
merged 2 commits into from
Apr 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions examples/windows/windows-volumes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This config will query the name, capacity and free space of all Windows volumes.
# This is useful in Windows Cluster environments as our infra agent doesn't pick up all mounts
---
integrations:
- name: nri-flex
config:
name: Win32Volumes
apis:
- name: Win32Volumes
commands:
- run: gwmi Win32_Volume -Computer localhost | Select-Object Name, Capacity, FreeSpace
shell: powershell
split: horizontal
split_by: ^(\S+)\s+(\d+)\s+(\d+)
regex_match: true
set_header: [Name, Capacity, FreeSpace]