Skip to content

iquzart/ansible-win-check-network-drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows Network Share status Prometheus Exporter

Role Name Quality Score Role Downloads Platforms Release License

Prometheus custom metrics for windows network share status

# HELP windows_network_share_up windows network share status. 
# TYPE windows_network_share_up gauge
windows_network_share_up{mountpoint="//example-a.file.core.windows.net/share-name-x"} 1
windows_network_share_up{mountpoint="//example-b.file.core.windows.net/share-name-y"} 1

Requirements

windows exporter installed and configured to scrap text file from C:\Prometheus\custom_metrics\promfiles*.prom

Example Playbook

- hosts: servers
  roles:
     - { role: iquzart.win-check-network-drive, network_drives: 'Z:\' }

License

MIT

Author Information

Muhammed Iqbal iquzart@hotmail.com