Folder exporter for legacy system.
Used for monitor folder status to ensure other services in host machine work properly.
Using ioutil.ReadDir for monitoring.
port: 8080
targets:
- "C:"
- "N:"
- "C:/windows"
# HELP folder_exists_metric
# TYPE folder_exists_metric gauge
folder_exists_metric{path="C:"} 2
folder_exists_metric{path="C:/Windows"} 2
folder_exists_metric{path="N:"} 1
- 2 = Active
- 1 = Read Error
- 0 = Inactive
go build
go run .
"gopkg.in/yaml.v2"
"github.com/prometheus/common/log"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"