You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Benjamin ea1dc3a7fa
Merge pull request #2 from Am3o/master
3 years ago
pkg Refactor the metrics collector and an interface for the client/collector 3 years ago
.gitignore refactor using packages 3 years ago
Dockerfile refactor using packages 3 years ago
LICENSE initial commit 3 years ago
Makefile refactor using packages 3 years ago add version to binary, add Makefile for convenience, update README accordingly 3 years ago
main.go update log != logrus 3 years ago


prometheus exporter for azure blob storage

lists blobs in given container with their size in bytes and creation time in unix timestamp

Getting Started


you have to set the following environment variables:

export storageAccountName="storage-account-name"
export storageAccountKey="storage-account-access-key"
export blobContainerName="container-name"

To run it:


Help on flags:

there is only one flag available: port

it will change the default port which is 8080

./azure-blob-storage-exporter -port="port_number"


Link to the Docker Hub Repository azure-blob-storage-exporter

To run the exporter as a Docker container, run:

docker run -p 8080:8080 -e storageAccountName="storage-account-name" -e storageAccountKey="storage-account-access-key" -e blobContainerName="container-name" benst/azure-blob-storage-exporter:0.1.0


simply build it with: make or make build

or if you want a local docker image: make docker-build

if you don't like Makefiles you can do it yourself with:

go build -ldflags "-X main.version=0.1.0" -o azure-blob-storage-exporter

or with docker:

docker build --build-arg version=0.1.0 -t azure-blob-storage-exporter:latest .