Skip to content

A Prometheus exporter that reports total file count and bucket size in bytes

License

Notifications You must be signed in to change notification settings

DeviaVir/gcs-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcs-exporter

A Prometheus exporter that reports on GCS file stats of one or multiple buckets, and their directories.

Metrics

gcs_update_time_seconds{bucket}
gcs_update_errors_total{bucket,type}
gcs_bytes_total{bucket="bucket"} 1.090393457076e+12
gcs_files_total{bucket="bucket"} 254
gcs_folder_bytes_total{bucket="bucket",folder="example/path"} 1.007658421126e+12
gcs_folder_files_total{bucket="bucket",folder="example/path"} 45
gcs_folder_last_created_date_seconds{bucket="bucket",folder="example/path"} 1.595970607e+09

Usage

docker run -it --rm deviavir/gcs-exporter:v0.7 --prometheusx.listen-address=:9112 --source=<bucket-name> --time=60s

When reading multiple bucket, make sure to duplicate source and time for each.

About

A Prometheus exporter that reports total file count and bucket size in bytes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 88.4%
  • Dockerfile 11.6%